se.ansman.kotshi.ksp.KspLoggers.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
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)
}