(content: &str, positions: &[Position])
| 899 | use crate::test_fixtures::make_backend; |
| 900 | |
| 901 | fn selection_ranges(content: &str, positions: &[Position]) -> Vec<SelectionRange> { |
| 902 | let backend = make_backend(); |
| 903 | backend |
| 904 | .handle_selection_range(content, positions) |
| 905 | .unwrap_or_default() |
| 906 | } |
| 907 | |
| 908 | /// Flatten a SelectionRange linked list into a Vec of Ranges (innermost first). |
| 909 | fn flatten(sel: &SelectionRange) -> Vec<Range> { |