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

Function make_hover

src/hover/formatting.rs:24–32  ·  view source on GitHub ↗

Create a `Hover` with Markdown content.

(contents: String)

Source from the content-addressed store, hash-verified

22
23/// Create a `Hover` with Markdown content.
24pub(super) fn make_hover(contents: String) -> Hover {
25 Hover {
26 contents: HoverContents::Markup(MarkupContent {
27 kind: MarkupKind::Markdown,
28 value: contents,
29 }),
30 range: None,
31 }
32}
33
34/// Format a deprecation message as a Markdown line for hover output.
35///

Callers 8

hover_from_symbolMethod · 0.85
hover_variableMethod · 0.85
hover_for_methodMethod · 0.85
hover_for_propertyMethod · 0.85
hover_for_constantMethod · 0.85
hover_for_class_infoMethod · 0.85
hover_for_functionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected