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

Function hover_text

tests/integration/hover.rs:29–34  ·  view source on GitHub ↗

Extract the Markdown text from a Hover response.

(hover: &Hover)

Source from the content-addressed store, hash-verified

27
28/// Extract the Markdown text from a Hover response.
29fn hover_text(hover: &Hover) -> &str {
30 match &hover.contents {
31 HoverContents::Markup(markup) => &markup.value,
32 _ => panic!("Expected MarkupContent"),
33 }
34}
35
36// ─── Multi-namespace hover ──────────────────────────────────────────────────
37

Calls

no outgoing calls