Convert CompilerMessageLocation to Kotlin

This commit is contained in:
Alexander Udalov
2015-06-13 02:39:32 +03:00
parent bca5eb083e
commit 6083a18ce1
4 changed files with 60 additions and 105 deletions
@@ -373,15 +373,13 @@ class GradleMessageCollector(val logger: Logger) : MessageCollector {
})
append(": ")
val path = location.getPath()
val (path, line, column) = location
if (path != null) {
append(path)
append(": ")
append("(")
append(location.getLine())
append(", ")
append(location.getColumn())
append("): ")
if (line > 0 && column > 0) {
append("($line, $column): ")
}
}
append(message)