const classpetanque::Span

sys::Obj
  petanque::Span

Span represents a span of text between two Pos

containsLine

Source

Bool containsLine(Int line)

Does this span contain specified line

end

Source

const Pos end

Exclusive end position

equals

Source

virtual override Bool equals(Obj? that)

Equality is based on start, end

hash

Source

virtual override Int hash()

Hash based on line and col

make

Source

new make(Pos start, Pos end)

Construct with inclusive start and exclusive end. If end is before start they are automatically swizzled.

makeInts

Source

new makeInts(Int startLine, Int startCol, Int endLine, Int endCol)

Construct with inclusive start and exclusive end

start

Source

const Pos start

Inclusive start position

toStr

Source

virtual override Str toStr()

Return zero based "line:col-line:col"