const classpetanque::Pos

sys::Obj
  petanque::Pos

Position in the document as zero based line and column number

col

Source

const Int col

Zero based column number

compare

Source

virtual override Int compare(Obj that)

Compare by line, then col

equals

Source

virtual override Bool equals(Obj? that)

Equality is based on line and col

hash

Source

virtual override Int hash()

Hash based on line and col

line

Source

const Int line

Zero based line number

make

Source

new make(Int line, Int col)

Construct with zero based line and column

toSpan

Source

Span toSpan()

Convert to span with this pos as both start and end

toStr

Source

virtual override Str toStr()

Return zero based "line:col"