fn get_enclosing_function(
cpg: &CodePropertyGraph,
start: NodeIndex,
) -> Option<&Node>Expand description
Walks up Edge::AstChild edges from start until a
NodeKind::Function node is found.
fn get_enclosing_function(
cpg: &CodePropertyGraph,
start: NodeIndex,
) -> Option<&Node>Walks up Edge::AstChild edges from start until a
NodeKind::Function node is found.