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 8d83354 commit fb017bfCopy full SHA for fb017bf
compiler/src/dotty/tools/dotc/util/SourcePosition.scala
@@ -28,9 +28,9 @@ extends interfaces.SourcePosition {
28
/** The lines of the position */
29
def lines: List[Int] = {
30
val startOffset = source.offsetToLine(start)
31
- val endOffest = source.offsetToLine(end + 1)
32
- if (startOffset >= endOffest) line :: Nil
33
- else List.tabulate(endOffest - startOffset)(i => i + startOffset)
+ val endOffset = source.offsetToLine(end + 1)
+ if (startOffset >= endOffset) line :: Nil
+ else List.tabulate(endOffset - startOffset)(i => i + startOffset)
34
}
35
36
def lineOffsets: List[Int] =
0 commit comments