Skip to main content

get_enclosing_function

Function get_enclosing_function 

Source
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.