Add remote input stream support, plus minor tweaks

This commit is contained in:
Ilya Chernikov
2016-09-16 17:07:45 +02:00
parent eaa332019a
commit 042fc4fadc
7 changed files with 131 additions and 9 deletions
@@ -16,12 +16,14 @@
package org.jetbrains.kotlin.cli.common.messages
import java.io.Serializable
data class CompilerMessageLocation private constructor(
val path: String?,
val line: Int,
val column: Int,
val lineContent: String?
) {
) : Serializable {
override fun toString(): String =
path + (if (line != -1 || column != -1) " ($line:$column)" else "")
@@ -35,5 +37,7 @@ data class CompilerMessageLocation private constructor(
lineContent: String?
): CompilerMessageLocation =
if (path == null) NO_LOCATION else CompilerMessageLocation(path, line, column, lineContent)
private val serialVersionUID: Long = 8228357578L // just a random number, should be changed when serialized data is changed
}
}