A span indicates a range between a start offset and an end offset. Spans can be synthetic or source-derived. A source-derived span has in addition a point lies somewhere between start and end. The point is roughly where the ^ would go if an error was diagnosed at that position. All quantities are encoded opaquely in a Long.
Does the range of this span contain the one of that span?
The end of this span
The zero-extent span with start and end at the end of this span
Is this span different from NoSpan?
The zero-extent span with start and end at the point of this span
Is this span source-derived?
Is this span synthetic?
Is this a zero-extent span?
The point of this span, returns start for synthetic spans
The difference between point and start in this span
A span where all components are shifted by a given
relative to this span.
The start of this span.
The zero-extent span with start and end at the start of this span
A synthetic copy of this span
The union of two spans. This is the least range that encloses both spans. It is always a synthetic span.
A copy of this span with a different end
A copy of this span with a different point
A copy of this span with a different start