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

Method function_loader_with

src/resolution.rs:902–908  ·  view source on GitHub ↗

Return a function-loader closure from individual file-context components. Useful when the caller does not have a full `FileContext` or needs to use a different use-map / namespace.

(
        &'a self,
        use_map: &'a HashMap<String, String>,
        namespace: &'a Option<String>,
    )

Source from the content-addressed store, hash-verified

900 /// Useful when the caller does not have a full `FileContext` or
901 /// needs to use a different use-map / namespace.
902 pub(crate) fn function_loader_with<'a>(
903 &'a self,
904 use_map: &'a HashMap<String, String>,
905 namespace: &'a Option<String>,
906 ) -> impl Fn(&str) -> Option<FunctionInfo> + 'a {
907 move |name: &str| self.resolve_function_name(name, use_map, namespace)
908 }
909
910 /// Return a constant-value-loader closure.
911 ///

Calls 1

resolve_function_nameMethod · 0.80

Tested by

no test coverage detected