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

jvmMain.compiler.CompilationMessage.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
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)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy