Skip to main content

selection_ranges

Function selection_ranges 

Source
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.