Produce hover information for a function call.
(
&self,
name: &str,
uri: &str,
content: &str,
_ctx: &FileContext,
function_loader: &dyn Fn(&str) -> Option<FunctionInfo>,
)
| 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( |
no test coverage detected