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

Function scope_checkable_var

src/cypher/cypher.c:6377–6385  ·  view source on GitHub ↗

The variable this item really references, or NULL when it references none. * Two items carry a placeholder in that field rather than a name the query * declared: `count(*)` stores "*", and a CASE expression stores "CASE". Both * would read as an unknown variable, so neither is checkable here. */

Source from the content-addressed store, hash-verified

6375 * declared: `count(*)` stores "*", and a CASE expression stores "CASE". Both
6376 * would read as an unknown variable, so neither is checkable here. */
6377static const char *scope_checkable_var(const cbm_return_item_t *item) {
6378 if (item->kase || !item->variable) {
6379 return NULL;
6380 }
6381 if (strcmp(item->variable, "*") == 0) {
6382 return NULL;
6383 }
6384 return item->variable;
6385}
6386
6387/* Says which limit the query passed and how to get under it. An unnamed node
6388 * takes no slot — except the head of the first pattern, which the engine binds

Callers 1

check_projection_scopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected