MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_extract_semantic

Function cbm_extract_semantic

internal/cbm/extract_semantic.c:288–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void cbm_extract_semantic(CBMExtractCtx *ctx) {
289 const CBMLangSpec *spec = cbm_lang_spec(ctx->language);
290 if (!spec) {
291 return;
292 }
293
294 // Throws
295 if ((spec->throw_node_types && spec->throw_node_types[0]) ||
296 (spec->throws_clause_field && spec->throws_clause_field[0])) {
297 walk_throws(ctx, ctx->root, spec);
298 }
299
300 // Reads/Writes
301 if (spec->assignment_node_types && spec->assignment_node_types[0]) {
302 walk_readwrites(ctx, ctx->root, spec);
303 }
304}
305
306// --- Unified handlers ---
307

Callers

nothing calls this directly

Calls 3

cbm_lang_specFunction · 0.85
walk_throwsFunction · 0.85
walk_readwritesFunction · 0.85

Tested by

no test coverage detected