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

Function py_scope_bind_callable

internal/cbm/lsp/py_lsp.c:199–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static void py_scope_bind_callable(PyLSPContext *ctx, const char *name, const CBMType *type,
200 const char *callable_qn) {
201 ctx->type_cache_gen++;
202 cbm_scope_bind_callable(ctx->current_scope, name, type, callable_qn);
203 const char *bound = name ? cbm_scope_lookup_callable(ctx->current_scope, name) : NULL;
204 if (name && (!cbm_scope_contains(ctx->current_scope, name) ||
205 (callable_qn && (!bound || strcmp(bound, callable_qn) != 0)))) {
206 py_disable_callable_value_proof(ctx);
207 }
208}
209
210static CBMScope *py_scope_push_checked(PyLSPContext *ctx) {
211 if (!ctx)

Callers 3

py_bind_import_indexFunction · 0.85
py_process_statementFunction · 0.85
py_bind_module_functionFunction · 0.85

Calls 4

cbm_scope_bind_callableFunction · 0.85
cbm_scope_containsFunction · 0.85

Tested by

no test coverage detected