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

Function py_scope_push_checked

internal/cbm/lsp/py_lsp.c:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static CBMScope *py_scope_push_checked(PyLSPContext *ctx) {
211 if (!ctx)
212 return NULL;
213 CBMScope *parent = ctx->current_scope;
214 CBMScope *child = cbm_scope_push(ctx->arena, parent);
215 if (!child || child == parent)
216 py_disable_callable_value_proof(ctx);
217 return child;
218}
219
220static void py_scope_clear_callable(PyLSPContext *ctx, const char *name) {
221 if (cbm_scope_update_callable(ctx->current_scope, name, NULL)) {

Callers 5

py_lsp_initFunction · 0.85
py_emit_call_forFunction · 0.85
py_walk_if_statementFunction · 0.85
py_process_functionFunction · 0.85

Calls 2

cbm_scope_pushFunction · 0.85

Tested by

no test coverage detected