Skip to main content

find_docblock

Function find_docblock 

Source
pub fn find_docblock(stmts: &[Stmt<'_, '_>], word: &str) -> Option<Docblock>
Expand description

Walk an AST and return the parsed docblock for the declaration named word.

Uses doc_comment fields on AST nodes — no source scan, no allocation for the raw text. The source parameter has been removed; the parser already attached the docblock text to each declaration node.