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

Method resolve_class_name_keyword

src/completion/call_resolution.rs:651–653  ·  view source on GitHub ↗

Resolve class name keywords (`self`, `static`, `parent`) to actual class names in the context of the current class.

(class_name: &str, current_class: Option<&ClassInfo>)

Source from the content-addressed store, hash-verified

649 /// Resolve class name keywords (`self`, `static`, `parent`) to actual
650 /// class names in the context of the current class.
651 fn resolve_class_name_keyword(class_name: &str, current_class: Option<&ClassInfo>) -> String {
652 resolve_class_keyword(class_name, current_class).unwrap_or_else(|| class_name.to_string())
653 }
654
655 /// Build a [`ResolvedCallableTarget`] for a constructor call.
656 ///

Callers

nothing calls this directly

Calls 1

resolve_class_keywordFunction · 0.85

Tested by

no test coverage detected