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

Function cbm_scope_update_callable

internal/cbm/lsp/scope.c:238–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238bool cbm_scope_update_callable(CBMScope *scope, const char *name, const char *callable_qn) {
239 if (!name) {
240 return false;
241 }
242 for (CBMScope *s = scope; s != NULL; s = s->parent) {
243 CBMVarBinding *b = scope_frame_find(s, name);
244 if (b) {
245 b->callable_qn = callable_qn;
246 return true;
247 }
248 }
249 return false;
250}

Calls 1

scope_frame_findFunction · 0.85

Tested by

no test coverage detected