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

Function symbols_namespaced_const

src/classmap_scanner.rs:2442–2446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2440
2441 #[test]
2442 fn symbols_namespaced_const() {
2443 let content = b"<?php\nnamespace App;\nconst VERSION = '1.0';";
2444 let result = find_symbols(content);
2445 assert_eq!(result.constants, vec!["App\\VERSION"]);
2446 }
2447
2448 #[test]
2449 fn symbols_class_const_not_captured() {

Callers

nothing calls this directly

Calls 1

find_symbolsFunction · 0.85

Tested by

no test coverage detected