Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pipeline/pass_parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,9 @@ static void resolve_def_decorators(resolve_ctx_t *rc, resolve_worker_state_t *ws
char dp[CBM_SZ_256];
snprintf(dp, sizeof(dp), "{\"decorator\":\"%s\"}", def->decorators[dc]);
cbm_gbuf_insert_edge(ws->local_edge_buf, node->id, dn->id, "DECORATES", dp);
/* Ensure a CALLS edge exists so decorator appears in reference queries.
* Use "{}" to avoid clobbering richer metadata from pass_calls. */
cbm_gbuf_insert_edge(ws->local_edge_buf, node->id, dn->id, "CALLS", "{}");
Comment thread
map588 marked this conversation as resolved.
Outdated
ws->semantic_resolved++;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/pipeline/pass_semantic.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ static void resolve_decorator(cbm_pipeline_ctx_t *ctx, const cbm_gbuf_node_t *no
char props[CBM_SZ_256];
snprintf(props, sizeof(props), "{\"decorator\":\"%s\"}", decorator);
cbm_gbuf_insert_edge(ctx->gbuf, node->id, dec->id, "DECORATES", props);
/* Ensure a CALLS edge exists so decorator appears in reference queries.
* Use "{}" to avoid clobbering richer metadata from pass_calls
* (dedup skips replacement when new props are "{}"). */
cbm_gbuf_insert_edge(ctx->gbuf, node->id, dec->id, "CALLS", "{}");
Comment thread
map588 marked this conversation as resolved.
Outdated
(*count)++;
}
}
Expand Down
Loading