We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c3613 commit ed56cb3Copy full SHA for ed56cb3
compiler/src/dotty/tools/dotc/util/SourcePosition.scala
@@ -30,7 +30,7 @@ extends interfaces.SourcePosition {
30
val startOffset = source.offsetToLine(start)
31
val endOffset = source.offsetToLine(end + 1)
32
if (startOffset >= endOffset) line :: Nil
33
- else List.tabulate(endOffset - startOffset)(i => i + startOffset)
+ else (startOffset until endOffset).toList
34
}
35
36
def lineOffsets: List[Int] =
0 commit comments