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

Function expect

src/cypher/cypher.c:491–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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