Prepare CLI reporting infrastructure for non-PSI diagnostics

This commit is contained in:
Ilya Chernikov
2021-10-04 12:22:03 +02:00
parent 5446168770
commit 1ce4075112
10 changed files with 182 additions and 28 deletions
@@ -22,9 +22,11 @@ interface CompilerMessageSourceLocation : Serializable {
val path: String
val line: Int
val column: Int
// NOTE: Seems that the end-of-location data do not belong here conceptually, and now causes confusion with other usages
// TODO: consider removing it and switching REPL/Scripting diagnostis to the higher-level entities (KtDiagnostics)
val lineEnd: Int get() = -1
val columnEnd: Int get() = -1
val lineContent: String?
val lineContent: String? // related to the (start) line/column only, used to show start position in the console output
}
data class CompilerMessageLocation private constructor(