mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-12 09:47:20 +08:00
Root cause of the systemic callable-sourcing gap (QUALITY_ANALYSIS gap #3; only 3.69% of real-repo CALLS were Function/Method-sourced): func_kinds_for_lang fell back to func_kinds_generic for the ~130 languages without a curated entry, missing their real function node types, so cbm_find_enclosing_func never found the parent function and attributed in-body calls to the Module node. Fix: in the default case, use the language spec's function_node_types (the single source of truth extraction already uses) when present. Curated languages (Go/ Python/C/C++/Rust/Java/...) are unchanged — no regression to the green gate. Flips the callable-sourcing + enclosing-parity reproductions for the drifted languages (dart/perl/scss/nix/fortran/cobol/verilog/vhdl/...) toward green. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>