hir_expand

Function span_for_offset

source
pub fn span_for_offset(
    db: &dyn ExpandDatabase,
    exp_map: &ExpansionSpanMap,
    offset: TextSize,
) -> (FileRange, SyntaxContextId)
Expand description

Looks up the span at the given offset.