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

Function use_const_not_captured

src/classmap_scanner.rs:2394–2402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2392
2393 #[test]
2394 fn use_const_not_captured() {
2395 let content = b"<?php\nnamespace App\\Config;\nuse const PHP_EOL;\n";
2396 let result = find_symbols(content);
2397 assert!(
2398 result.constants.is_empty(),
2399 "use const statements should not appear as constants: {:?}",
2400 result.constants
2401 );
2402 }
2403
2404 #[test]
2405 fn symbols_method_not_captured() {

Callers

nothing calls this directly

Calls 1

find_symbolsFunction · 0.85

Tested by

no test coverage detected