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

Function classify_range_no_this

src/scope_collector/tests.rs:787–798  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

785
786#[test]
787fn classify_range_no_this() {
788 let php = r#"<?php
789function test() {
790 $x = 1;
791}
792"#;
793 let scope_map = collect_from_function(php);
794
795 let frame = &scope_map.frames[0];
796 let classification = scope_map.classify_range(frame.start, frame.end);
797 assert!(!classification.uses_this);
798}
799
800// ─── Complex scenarios ──────────────────────────────────────────────────────
801

Callers

nothing calls this directly

Calls 2

collect_from_functionFunction · 0.85
classify_rangeMethod · 0.80

Tested by

no test coverage detected