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

Function is_named_func_call

src/cypher/cypher.c:1535–1543  ·  view source on GitHub ↗

True if the cursor is at `IDENT(` where IDENT is a supported scalar function. */

Source from the content-addressed store, hash-verified

1533
1534/* True if the cursor is at `IDENT(` where IDENT is a supported scalar function. */
1535static bool is_named_func_call(parser_t *p) {
1536 if (!check(p, TOK_IDENT) || p->pos + SKIP_ONE >= p->count) {
1537 return false;
1538 }
1539 if (p->tokens[p->pos + SKIP_ONE].type != TOK_LPAREN) {
1540 return false;
1541 }
1542 return scalar_func_canonical(peek(p)->text) != NULL;
1543}
1544
1545/* Parse a single-argument scalar / introspection call: labels(n), type(r),
1546 * id(n), keys(n), properties(n), toInteger(n.start_line), ... */

Callers 1

parse_return_itemFunction · 0.85

Calls 3

scalar_func_canonicalFunction · 0.85
peekFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected