Function span_to_range
Source pub fn span_to_range(span: Span) -> TextRange
Expand description
Convert a Praxis Span into a rowan TextRange.
Span is never inverted (start ≤ end by construction), so this cannot panic
on TextRange::new’s internal assertion.