pub fn selection_ranges(
source: &str,
positions: &[Position],
) -> Vec<SelectionRange>Expand description
Compute selection ranges for each requested position.
For every position, walks up the tree-sitter node ancestry from the
deepest (leaf) node to the root, producing a linked list of
SelectionRange values that editors use for expand/shrink selection.