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

Function binding_get

src/cypher/cypher.c:2434–2441  ·  view source on GitHub ↗

Find a variable's node in a binding */

Source from the content-addressed store, hash-verified

2432
2433/* Find a variable's node in a binding */
2434static cbm_node_t *binding_get(binding_t *b, const char *var) {
2435 for (int i = 0; i < b->var_count; i++) {
2436 if (strcmp(b->var_names[i], var) == 0) {
2437 return &b->var_nodes[i];
2438 }
2439 }
2440 return NULL;
2441}
2442
2443/* Deep copy a node: heap-dup all string fields so the binding owns them */
2444static void node_deep_copy(cbm_node_t *dst, const cbm_node_t *src) {

Callers 12

resolve_condition_valueFunction · 0.85
eval_conditionFunction · 0.85
binding_get_virtualFunction · 0.85
process_edgesFunction · 0.85
expand_var_lengthFunction · 0.85
expand_pattern_relsFunction · 0.85
project_itemFunction · 0.85
with_agg_find_or_createFunction · 0.85
project_star_varFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected