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

Function echo_statement_value

src/selection_range.rs:1362–1377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1360
1361 #[test]
1362 fn echo_statement_value() {
1363 let content = r#"<?php
1364echo "hello", "world";
1365"#;
1366 // Cursor on "world" (line 1, char 15).
1367 let results = selection_ranges(content, &[Position::new(1, 15)]);
1368 assert_eq!(results.len(), 1);
1369 let ranges = flatten(&results[0]);
1370 // string → echo → file
1371 assert!(
1372 ranges.len() >= 3,
1373 "Expected at least 3 levels for echo value, got {}",
1374 ranges.len()
1375 );
1376 assert_nested(&ranges);
1377 }
1378
1379 // ─── 9. Closure expression ──────────────────────────────────────────
1380

Callers

nothing calls this directly

Calls 3

selection_rangesFunction · 0.85
flattenFunction · 0.85
assert_nestedFunction · 0.85

Tested by

no test coverage detected