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

Function parse_var_dot_prop

src/cypher/cypher.c:1489–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487}
1488
1489static int parse_var_dot_prop(parser_t *p, cbm_return_item_t *item) {
1490 const cbm_token_t *var = expect(p, TOK_IDENT);
1491 if (!var) {
1492 return CBM_NOT_FOUND;
1493 }
1494 item->variable = heap_strdup(var->text);
1495 if (match(p, TOK_DOT)) {
1496 const cbm_token_t *prop = expect(p, TOK_IDENT);
1497 if (prop) {
1498 item->property = heap_strdup(prop->text);
1499 }
1500 }
1501 return 0;
1502}
1503
1504/* True if the cursor is at `IDENT(` where IDENT is a supported scalar function. */
1505static bool is_named_func_call(parser_t *p) {

Callers 4

parse_named_func_itemFunction · 0.85
parse_aggregate_itemFunction · 0.85
parse_string_func_itemFunction · 0.85
parse_return_itemFunction · 0.85

Calls 3

expectFunction · 0.85
matchFunction · 0.85
heap_strdupFunction · 0.70

Tested by

no test coverage detected