pub fn selection_ranges(
state: &DocumentState,
positions: Vec<Position>,
) -> Vec<SelectionRange>Expand description
Compute selection ranges for each requested position.
Builds a chain of nested ranges from innermost (token) to outermost (full rule), enabling “Expand/Shrink Selection” in the editor.