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

Function scope_holds

src/cypher/cypher.c:6299–6306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6297enum { CYP_SCOPE_MAX_NAMES = 32 };
6298
6299static bool scope_holds(const char *const *names, int count, const char *want) {
6300 for (int i = 0; i < count; i++) {
6301 if (names[i] && strcmp(names[i], want) == 0) {
6302 return true;
6303 }
6304 }
6305 return false;
6306}
6307
6308/* Every name the query's patterns declare, plus an UNWIND alias.
6309 * Answers -1 when there are more names than the cap holds. */

Callers 4

collect_declared_namesFunction · 0.85
collect_with_namesFunction · 0.85
check_projection_scopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected