mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
The Kotlin LSP resolves a method call on an unknown-typed receiver whose member is a universal kotlin.Any method (toString/equals/hashCode) to kotlin.Any.<m> and emits lsp_kt_any, but no kotlin.Any node existed in the graph, so pass_calls had no target node and dropped the call (callable=0). Add kotlin_builtins.c (mirror of py_builtins.c): inject kotlin.Any plus its three universal methods into result->defs during cbm_run_kotlin_lsp, before the pipeline mints def nodes. The lsp_kt_any call now targets the injected node and forms a CALLS edge. Update the kotlin grammar-label golden to include the 4 injected nodes, exactly as python's golden already includes its injected builtins. Un-skips repro_lsp_kt_any. Repro suite 312/0, unit suite 5693/0. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>