Type Alias ra_ap_span::Span
source · pub type Span = SpanData<SyntaxContextId>;Aliased Type§
struct Span {
pub range: TextRange,
pub anchor: SpanAnchor,
pub ctx: SyntaxContextId,
}Fields§
§range: TextRangeThe text range of this span, relative to the anchor. We need the anchor for incrementality, as storing absolute ranges will require recomputation on every change in a file at all times.
anchor: SpanAnchorThe anchor this span is relative to.
ctx: SyntaxContextIdThe syntax context of the span.