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

Method function_loader

src/resolution.rs:890–895  ·  view source on GitHub ↗

Return a function-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 explicit use-map / namespace values, use [`function_loader_with`](Self::function_loader_with).

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

Source from the content-addressed store, hash-verified

888 /// explicit use-map / namespace values, use
889 /// [`function_loader_with`](Self::function_loader_with).
890 pub(crate) fn function_loader<'a>(
891 &'a self,
892 ctx: &'a FileContext,
893 ) -> impl Fn(&str) -> Option<FunctionInfo> + 'a {
894 self.function_loader_with(&ctx.use_map, &ctx.namespace)
895 }
896
897 /// Return a function-loader closure from individual file-context
898 /// components.

Callers 2

runFunction · 0.45
on_type_formattingMethod · 0.45

Calls 1

function_loader_withMethod · 0.80

Tested by

no test coverage detected