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

Method hover_function_call

src/hover/mod.rs:1089–1103  ·  view source on GitHub ↗

Produce hover information for a function call.

(
        &self,
        name: &str,
        uri: &str,
        content: &str,
        _ctx: &FileContext,
        function_loader: &dyn Fn(&str) -> Option<FunctionInfo>,
    )

Source from the content-addressed store, hash-verified

1087
1088 /// Produce hover information for a function call.
1089 fn hover_function_call(
1090 &self,
1091 name: &str,
1092 uri: &str,
1093 content: &str,
1094 _ctx: &FileContext,
1095 function_loader: &dyn Fn(&str) -> Option<FunctionInfo>,
1096 ) -> Option<Hover> {
1097 if let Some(func) = function_loader(name) {
1098 let resolved_see = self.resolve_see_refs(&func.see_refs, uri, content);
1099 Some(hover_for_function(&func, Some(&resolved_see)))
1100 } else {
1101 None
1102 }
1103 }
1104
1105 /// Build hover content for a method.
1106 pub(crate) fn hover_for_method(

Callers 1

hover_from_symbolMethod · 0.80

Calls 2

hover_for_functionFunction · 0.85
resolve_see_refsMethod · 0.80

Tested by

no test coverage detected