Skip to main content

selection_ranges

Function selection_ranges 

Source
pub fn selection_ranges(
    doc: &ParsedDoc,
    positions: &[Position],
) -> Vec<SelectionRange>
Expand description

Build a selection-range chain for each cursor position. Levels go from innermost to outermost via parent links.