SourceSpan
@Js
const class SourceSpan : Obj
References a snippet of text from the source input.
It has a starting positiont (line and column index) and a length of how many characters it spans.
Length of the span in characters
0-based index in whole input
0-based line index, e.g
0-based index of column (i.e
const Int : columnIndex
0-based index of column (i.e. character on line) in source, e.g. 0 for the first character of a line, 1 for the second character, etc.
virtual Bool equals(Obj? obj)
virtual Int hash()
const Int : inputIndex
0-based index in whole input
const Int : len
Length of the span in characters
const Int : lineIndex
0-based line index, e.g. 0 for first line, 1 for second line, etc.
new of(Int lineIndex, Int columnIndex, Int inputIndex, Int len)
SourceSpan subSpan(Int beginIndex, Int endIndex)
virtual Str toStr()