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

Function extract_description_from_info

src/hover/formatting.rs:504–506  ·  view source on GitHub ↗

Extract the description from a pre-parsed [`DocblockInfo`], applying HTML-to-Markdown conversion.

(info: &DocblockInfo)

Source from the content-addressed store, hash-verified

502/// Extract the description from a pre-parsed [`DocblockInfo`], applying
503/// HTML-to-Markdown conversion.
504pub(crate) fn extract_description_from_info(info: &DocblockInfo) -> Option<String> {
505 info.description.as_deref().map(html_to_markdown)
506}
507
508/// Extract the human-readable description text from a raw docblock string.
509///

Callers 1

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected