
se.ansman.kotshi.kapt.Messagers.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
package se.ansman.kotshi.kapt
import javax.annotation.processing.Messager
import javax.lang.model.element.Element
import javax.tools.Diagnostic
fun Messager.logKotshiError(error: KaptProcessingError) {
logKotshiError(error.message, error.element)
}
fun Messager.logKotshiError(message: String, element: Element?) {
printMessage(Diagnostic.Kind.ERROR, "Kotshi: $message", element)
}
fun Messager.logKotshiWarning(message: String, element: Element?) {
printMessage(Diagnostic.Kind.WARNING, "Kotshi: $message", element)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy