jvmMain.dev.fritz2.lens.Message.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lenses-annotation-processor-jvm Show documentation
Show all versions of lenses-annotation-processor-jvm Show documentation
Easily build reactive web-apps in Kotlin based on flows and coroutines
The newest version!
package dev.fritz2.lens
import com.google.devtools.ksp.processing.KSPLogger
enum class Severity {
Warning, Error
}
data class Message(val severity: Severity, val message: String)
fun KSPLogger.log(message: Message) {
when (message.severity) {
Severity.Warning -> this.warn(message.message)
Severity.Error -> this.error(message.message)
}
}