span

open fun span(startOffset: Int, endExclusiveOffset: Int): SourceSpan

Creates a span from two absolute offsets.

Throws

if the end precedes the start or an offset is not retained