aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/util/SourceFile.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-29 15:45:46 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-10 13:25:36 +0200
commit0781b31fa4e3d22cb6a51882b8d632ea9a16ed6f (patch)
treed0b89359d2af440640e457f04d6d6a945251a592 /src/dotty/tools/dotc/util/SourceFile.scala
parenta0026a09d76c09266c368c7a07a0cc2c5994367e (diff)
downloaddotty-0781b31fa4e3d22cb6a51882b8d632ea9a16ed6f.tar.gz
dotty-0781b31fa4e3d22cb6a51882b8d632ea9a16ed6f.tar.bz2
dotty-0781b31fa4e3d22cb6a51882b8d632ea9a16ed6f.zip
Handle multiline messages in ConsoleReporter
Diffstat (limited to 'src/dotty/tools/dotc/util/SourceFile.scala')
-rw-r--r--src/dotty/tools/dotc/util/SourceFile.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/util/SourceFile.scala b/src/dotty/tools/dotc/util/SourceFile.scala
index 8bd0ecfd6..1d4c9c2ab 100644
--- a/src/dotty/tools/dotc/util/SourceFile.scala
+++ b/src/dotty/tools/dotc/util/SourceFile.scala
@@ -97,7 +97,7 @@ case class SourceFile(file: AbstractFile, content: Array[Char]) extends interfac
private lazy val lineIndices: Array[Int] = calculateLineIndices(content)
/** Map line to offset of first character in line */
- def lineToOffset(index : Int): Int = lineIndices(index)
+ def lineToOffset(index: Int): Int = lineIndices(index)
/** A cache to speed up offsetToLine searches to similar lines */
private var lastLine = 0