Skip to content

Span

A region of source text.

Spans compare and order by position, so they can be sorted or used as dict keys.

Fields

end @ Pos

The exclusive end position.

start @ Pos

The inclusive start position.