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

Function expect

src/cypher/cypher.c:492–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492static const cbm_token_t *expect(parser_t *p, cbm_token_type_t type) {
493 if (check(p, type)) {
494 return advance(p);
495 }
496 snprintf(p->error, sizeof(p->error), "expected token type %d, got %d at pos %d", type,
497 peek(p)->type, peek(p)->pos);
498 return NULL;
499}
500
501/* Parse inline properties: {key: "value", ...} */
502static int parse_props(parser_t *p, cbm_prop_filter_t **out, int *count) {

Callers 15

GraphTab.test.tsFile · 0.85
StatsTab.test.tsxFile · 0.85
GraphScene.test.tsFile · 0.85
i18n.test.tsFile · 0.85
density.test.tsFile · 0.85
parse_propsFunction · 0.85
parse_nodeFunction · 0.85
parse_rel_typesFunction · 0.85

Calls 3

advanceFunction · 0.85
peekFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected