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

Function resolve_class_fully

src/virtual_members/mod.rs:654–659  ·  view source on GitHub ↗

Resolve a class with full inheritance and virtual member providers. This is the primary entry point for completion, go-to-definition, and any other feature that needs the complete set of members visible on a class instance or static access. The resolution proceeds in two phases: 1. **Base resolution** via [`resolve_class_with_inheritance`]: merges own members, trait members, and parent chain me

(
    class: &ClassInfo,
    class_loader: &dyn Fn(&str) -> Option<Arc<ClassInfo>>,
)

Source from the content-addressed store, hash-verified

652/// themselves, to avoid circular loading) should call
653/// [`resolve_class_with_inheritance`] directly.
654pub fn resolve_class_fully(
655 class: &ClassInfo,
656 class_loader: &dyn Fn(&str) -> Option<Arc<ClassInfo>>,
657) -> Arc<ClassInfo> {
658 resolve_class_fully_inner(class, class_loader, None, &[])
659}
660
661/// Cached variant of [`resolve_class_fully`].
662///

Calls 1