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

se.ansman.kotshi.kapt.Messagers.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.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 - 2024 Weber Informatics LLC | Privacy Policy