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

Function compare_binding_key

internal/cbm/extract_usages.c:2376–2382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2374}
2375
2376static int compare_binding_key(const CBMLexicalBinding *binding, uint32_t scope_id,
2377 const char *name) {
2378 if (binding->scope_id != scope_id) {
2379 return binding->scope_id < scope_id ? -1 : 1;
2380 }
2381 return strcmp(binding->name, name);
2382}
2383
2384static int lexical_binding_lower_bound(const WalkState *state, uint32_t scope_id,
2385 const char *name) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected