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

Function cbm_scope_push

internal/cbm/lsp/scope.c:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <string.h>
3
4CBMScope* cbm_scope_push(CBMArena* a, CBMScope* current) {
5 CBMScope* scope = (CBMScope*)cbm_arena_alloc(a, sizeof(CBMScope));
6 if (!scope) {
7 return current;
8 }
9 memset(scope, 0, sizeof(CBMScope));
10 scope->parent = current;
11 scope->arena = a;
12 return scope;
13}
14
15CBMScope* cbm_scope_pop(CBMScope* scope) {
16 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
c_lsp_initFunction · 0.85
c_process_functionFunction · 0.85
java_lsp_initFunction · 0.85
process_blockFunction · 0.85
process_method_declFunction · 0.85
process_constructor_declFunction · 0.85
java_process_class_declFunction · 0.85

Calls 1

cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected