Skip to content

Commit ac8fde6

Browse files
map588claude
andcommitted
feat(pipeline): emit CALLS edges for decorator applications
Decorators previously only created DECORATES edges. A @login_required decorator was invisible to "find all references" queries because those look for CALLS and USAGE edges. Now resolve_decorator emits both DECORATES and CALLS edges. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fd36045 commit ac8fde6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/pipeline/pass_semantic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ static void resolve_decorator(cbm_pipeline_ctx_t *ctx, const cbm_gbuf_node_t *no
321321
char props[CBM_SZ_256];
322322
snprintf(props, sizeof(props), "{\"decorator\":\"%s\"}", decorator);
323323
cbm_gbuf_insert_edge(ctx->gbuf, node->id, dec->id, "DECORATES", props);
324+
/* Also emit CALLS edge so decorator appears in "find all references" queries */
325+
cbm_gbuf_insert_edge(ctx->gbuf, node->id, dec->id, "CALLS",
326+
"{\"kind\":\"decorator\"}");
324327
(*count)++;
325328
}
326329
}

0 commit comments

Comments
 (0)