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

Method class_loader

src/resolution.rs:820–825  ·  view source on GitHub ↗

Return a class-loader closure bound to a [`FileContext`]. This is the convenience wrapper for the common case where the caller already has a `FileContext`. For situations that need a different class list (e.g. patched/effective classes after error recovery), use [`class_loader_with`](Self::class_loader_with).

(
        &'a self,
        ctx: &'a FileContext,
    )

Source from the content-addressed store, hash-verified

818 /// different class list (e.g. patched/effective classes after error
819 /// recovery), use [`class_loader_with`](Self::class_loader_with).
820 pub(crate) fn class_loader<'a>(
821 &'a self,
822 ctx: &'a FileContext,
823 ) -> impl Fn(&str) -> Option<Arc<ClassInfo>> + 'a {
824 self.class_loader_with(&ctx.classes, &ctx.use_map, &ctx.namespace)
825 }
826
827 /// Return a class-loader closure from individual file-context
828 /// components.

Callers 15

runFunction · 0.80
on_type_formattingMethod · 0.80
subtypes_implMethod · 0.80
resolve_memberMethod · 0.80
resolve_classMethod · 0.80
handle_completionMethod · 0.80
complete_phpdoc_tagMethod · 0.80

Calls 1

class_loader_withMethod · 0.80