jvmMain.compiler.CompilationMessage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-compiler-jvm Show documentation
Show all versions of fluid-compiler-jvm Show documentation
Compile Kotlin code and run Kapt annotation processing directly from Kotlin
package io.fluidsonic.compiler
import org.jetbrains.kotlin.cli.common.messages.*
public data class CompilationMessage(
val location: CompilerMessageSourceLocation?,
val message: String,
val severity: CompilerMessageSeverity
) {
override fun toString(): String = buildString {
append(severity.presentableName)
if (location != null) {
append(" [at ")
append(location)
append("]")
}
append(": ")
append(message)
}
}