Skip to main content

extract_jsdoc

Function extract_jsdoc 

Source
pub fn extract_jsdoc(node: &Node<'_>, content: &str) -> Option<String>
Expand description

Extract a JSDoc comment (/** ... */) preceding a node.

Walks backwards through siblings looking for a comment starting with /**.