Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(extract): keep both Go method QN sides flat when the type QN is NULL
Martin Vogeldb8d547ae1ac
diff --git a/internal/cbm/extract_defs.c b/internal/cbm/extract_defs.cindex 176d0a0b8..1257945a5 100644--- a/internal/cbm/extract_defs.c+++ b/internal/cbm/extract_defs.c@@ -6700,7 +6700,7 @@ static void extract_func_def(CBMExtractCtx *ctx, TSNode node, const CBMLangSpec* branch too, but its call-scope QN (compute_func_qn) stays flat,* and a def QN the calls do not share would orphan every call* inside a templ method. */- if (ctx->language == CBM_LANG_GO) {+ if (ctx->language == CBM_LANG_GO && def.parent_class) {def.qualified_name = cbm_arena_sprintf(a, "%s.%s", def.parent_class, name);}}diff --git a/internal/cbm/extract_unified.c b/internal/cbm/extract_unified.cindex 009a91194..aac32e786 100644--- a/internal/cbm/extract_unified.c+++ b/internal/cbm/extract_unified.c@@ -1109,7 +1109,11 @@ static const char *compute_func_qn(CBMExtractCtx *ctx, TSNode node, const CBMLanif (recv_type && recv_type[0]) {const char *type_qn = cbm_fqn_compute_source_lang(ctx->arena, ctx->project, ctx->rel_path, recv_type, ctx->language);- return cbm_arena_sprintf(ctx->arena, "%s.%s", type_qn, name);+ /* NULL only on allocation failure: fall through to the flat+ * QN, as the def side does (extract_defs.c). */+ if (type_qn) {+ return cbm_arena_sprintf(ctx->arena, "%s.%s", type_qn, name);+ }}}}