Improve diagnostics for runtime versions consistency checker
- report the diagnostic on the actual problematic file - output the list of all runtime jars if min version != max version
This commit is contained in:
+8
-7
@@ -28,14 +28,15 @@ data class CompilerMessageLocation private constructor(
|
||||
path + (if (line != -1 || column != -1) " ($line:$column)" else "")
|
||||
|
||||
companion object {
|
||||
@JvmField val NO_LOCATION: CompilerMessageLocation = CompilerMessageLocation(null, -1, -1, null)
|
||||
@JvmField
|
||||
val NO_LOCATION: CompilerMessageLocation = create(null)
|
||||
|
||||
@JvmStatic fun create(
|
||||
path: String?,
|
||||
line: Int,
|
||||
column: Int,
|
||||
lineContent: String?
|
||||
): CompilerMessageLocation =
|
||||
@JvmStatic
|
||||
fun create(path: String?): CompilerMessageLocation =
|
||||
CompilerMessageLocation(path, -1, -1, null)
|
||||
|
||||
@JvmStatic
|
||||
fun create(path: String?, line: Int, column: Int, lineContent: String?): CompilerMessageLocation =
|
||||
if (path == null) NO_LOCATION else CompilerMessageLocation(path, line, column, lineContent)
|
||||
|
||||
private val serialVersionUID: Long = 8228357578L
|
||||
|
||||
Reference in New Issue
Block a user