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

Function expect

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

Source from the content-addressed store, hash-verified

497}
498
499static const cbm_token_t *expect(parser_t *p, cbm_token_type_t type) {
500 if (check(p, type)) {
501 return advance(p);
502 }
503 snprintf(p->error, sizeof(p->error), "expected token type %d, got %d at pos %d", type,
504 peek(p)->type, peek(p)->pos);
505 return NULL;
506}
507
508/* Free the first n entries of a property array and the array itself. */
509static void free_prop_entries(cbm_prop_filter_t *arr, int n) {

Calls 3

peekFunction · 0.85
checkFunction · 0.70
advanceFunction · 0.70

Tested by 15

clickFunction · 0.68
refuseFunction · 0.68
initialLayoutFunction · 0.68
everyPointInsideFunction · 0.68
openScopeFunction · 0.68
zIndexFunction · 0.68
githubHierarchyFunction · 0.68
renderFanFunction · 0.68
expectNamesFunction · 0.68
expectSelectionFunction · 0.68
clickFunction · 0.68
clickFunction · 0.68