pub fn extract_call_edges(
query: &Query,
root: &Node<'_>,
source: &str,
symbols: &[Symbol],
edges: &mut Vec<Edge>,
patterns: &CallCapturePatterns,
)Expand description
Extract call edges from an AST using a tree-sitter query.
This is a shared helper for all language parsers. The query should capture:
- Call/method names with patterns like “call.name”, “method_call.name”
- Call expressions with patterns like “call.expr”, “method_call.expr”