; Rust call extraction queries
; Captures: @node (call), @callee (function/method name)

; foo(args) — direct function call
(call_expression
  function: (identifier) @callee) @node

; path::to::func(args) — qualified call
(call_expression
  function: (scoped_identifier
    name: (identifier) @callee)) @node

; obj.method(args) — method call
(call_expression
  function: (field_expression
    field: (field_identifier) @callee)) @node

; println!("...") — macro invocation
(macro_invocation
  macro: (identifier) @callee) @node
