Skip to main content

find_targets

Function find_targets 

Source
pub fn find_targets(
    source_id: &str,
    predicate: CodeEdgePredicate,
    nodes_batch: &RecordBatch,
    edges_batch: &RecordBatch,
) -> Vec<CodeNode>
Expand description

Find all nodes that source_id has an edge of predicate type pointing TO.

Example: find_targets("func:a.py::foo", Calls, ...) finds all functions foo calls.