const class markdown::SourceSpan

sys::Obj
  markdown::SourceSpan

@Js

Source

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.

columnIndex

const Int columnIndex

Source

0-based index of column (i.e. character on line) in source

equals

virtual override Bool equals(Obj? obj)

Source

hash

virtual override Int hash()

Source

len

const Int len

Source

Length of the span in characters

lineIndex

const Int lineIndex

Source

0-based index of line in source

make

new make(Int lineIndex, Int columnIndex, Int len)

Source

toStr

virtual override Str toStr()

Source