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

Function multiple_positions

src/selection_range.rs:972–985  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

970
971 #[test]
972 fn multiple_positions() {
973 let content = r#"<?php
974$a = 1;
975$b = 2;
976"#;
977 let results = selection_ranges(content, &[Position::new(1, 1), Position::new(2, 1)]);
978 assert_eq!(results.len(), 2);
979
980 // Each should produce a valid chain.
981 for result in &results {
982 let ranges = flatten(result);
983 assert!(!ranges.is_empty());
984 }
985 }
986
987 #[test]
988 fn nested_if_statement() {

Callers

nothing calls this directly

Calls 2

selection_rangesFunction · 0.85
flattenFunction · 0.85

Tested by

no test coverage detected