Skip to main content

get_node_text

Function get_node_text 

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

Extract the source text for a node with a bounds check.

Returns None if the node’s byte range falls outside source.