MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / selection_ranges

Function selection_ranges

src/selection_range.rs:901–906  ·  view source on GitHub ↗
(content: &str, positions: &[Position])

Source from the content-addressed store, hash-verified

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> {

Callers 15

class_method_bodyFunction · 0.85
multiple_positionsFunction · 0.85
nested_if_statementFunction · 0.85
empty_fileFunction · 0.85
ranges_are_nestedFunction · 0.85
foreach_value_variableFunction · 0.85
foreach_key_valueFunction · 0.85
for_loop_bodyFunction · 0.85

Calls 2

make_backendFunction · 0.85

Tested by 15

class_method_bodyFunction · 0.68
multiple_positionsFunction · 0.68
nested_if_statementFunction · 0.68
empty_fileFunction · 0.68
ranges_are_nestedFunction · 0.68
foreach_value_variableFunction · 0.68
foreach_key_valueFunction · 0.68
for_loop_bodyFunction · 0.68