Skip to main content

docblock_before

Function docblock_before 

Source
pub fn docblock_before(source: &str, node_start: u32) -> Option<String>
Expand description

Scan source for a /** ... */ docblock that ends immediately before node_start (byte offset). Whitespace between the */ and the node is allowed; non-whitespace text in between disqualifies the block.