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

Function cbm_scope_push

internal/cbm/lsp/scope.c:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20CBMScope* cbm_scope_push(CBMArena* a, CBMScope* current) {
21 CBMScope* scope = (CBMScope*)cbm_arena_alloc(a, sizeof(CBMScope));
22 if (!scope) {
23 return current;
24 }
25 memset(scope, 0, sizeof(CBMScope));
26 scope->parent = current;
27 scope->arena = a;
28 return scope;
29}
30
31CBMScope* cbm_scope_pop(CBMScope* scope) {
32 if (!scope) {

Callers 15

php_lsp_initFunction · 0.85
walk_with_narrowingsFunction · 0.85
process_function_likeFunction · 0.85
py_scope_push_checkedFunction · 0.85
py_class_frame_pushFunction · 0.85
py_root_class_namesFunction · 0.85
c_lsp_initFunction · 0.85
c_process_functionFunction · 0.85
java_lsp_initFunction · 0.85
process_blockFunction · 0.85

Calls 1

cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected