All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.ansman.kotshi.ksp.KspLoggers.kt Maven / Gradle / Ivy

Go to download

An annotations processor that generates Moshi adapters from Kotlin data classes

The newest version!
package se.ansman.kotshi.ksp

import com.google.devtools.ksp.processing.KSPLogger
import com.google.devtools.ksp.symbol.KSNode

fun KSPLogger.logKotshiError(error: KspProcessingError) {
    logKotshiError(error.message, error.node)
}

fun KSPLogger.logKotshiError(message: String, node: KSNode?) {
    error("Kotshi: $message", node)
}

fun KSPLogger.logKotshiWarning(message: String, node: KSNode?) {
    warn("Kotshi: $message", node)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy