; Go call extraction queries
; Captures: @node (call), @callee (function name)

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

; pkg.Foo(args) — qualified/selector call
(call_expression
  function: (selector_expression
    field: (field_identifier) @callee)) @node
