mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Implements extractCallGraph with a sibling-aware walk that pairs each function_signature with its subsequent function_body sibling (Dart's AST differs from Kotlin's: signature and body are siblings, not parent/child). Detects call sites via selector nodes containing argument_part; uses startIndex for sibling lookup (web-tree-sitter returns new wrapper objects per child() call, making === unreliable). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>