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

Function extract_symbol_info

src/completion/phpdoc/context.rs:407–410  ·  view source on GitHub ↗

Extract information about the PHP symbol following the docblock. Parses the declaration line(s) after `*/` to pull out parameter names, type hints, return types, etc.

(content: &str, position: Position)

Source from the content-addressed store, hash-verified

405/// Parses the declaration line(s) after `*/` to pull out parameter names,
406/// type hints, return types, etc.
407pub fn extract_symbol_info(content: &str, position: Position) -> SymbolInfo {
408 let remaining = get_text_after_docblock(content, position);
409 parse_symbol_info(&remaining)
410}
411
412// ─── Helpers ────────────────────────────────────────────────────────────────
413

Calls 2

get_text_after_docblockFunction · 0.85
parse_symbol_infoFunction · 0.85