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

Function scope_error

src/cypher/cypher.c:6367–6371  ·  view source on GitHub ↗

Build the message. It names the variable and the clause, because an error * that does not say WHICH name is wrong sends the reader back to guessing. */

Source from the content-addressed store, hash-verified

6365/* Build the message. It names the variable and the clause, because an error
6366 * that does not say WHICH name is wrong sends the reader back to guessing. */
6367static char *scope_error(const char *var, const char *clause, const char *why) {
6368 char buf[CBM_SZ_256];
6369 snprintf(buf, sizeof(buf), "variable '%s' is not in scope for %s — %s", var, clause, why);
6370 return heap_strdup(buf);
6371}
6372
6373/* The variable this item really references, or NULL when it references none.
6374 * Two items carry a placeholder in that field rather than a name the query

Callers 1

check_projection_scopeFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected