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

Function compare_binding_key

internal/cbm/extract_usages.c:2242–2248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2240}
2241
2242static int compare_binding_key(const CBMLexicalBinding *binding, uint32_t scope_id,
2243 const char *name) {
2244 if (binding->scope_id != scope_id) {
2245 return binding->scope_id < scope_id ? -1 : 1;
2246 }
2247 return strcmp(binding->name, name);
2248}
2249
2250static int lexical_binding_lower_bound(const WalkState *state, uint32_t scope_id,
2251 const char *name) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected