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

Function binding_get

src/cypher/cypher.c:2515–2522  ·  view source on GitHub ↗

Find a variable's node in a binding */

Source from the content-addressed store, hash-verified

2513
2514/* Find a variable's node in a binding */
2515static cbm_node_t *binding_get(binding_t *b, const char *var) {
2516 for (int i = 0; i < b->var_count; i++) {
2517 if (strcmp(b->var_names[i], var) == 0) {
2518 return &b->var_nodes[i];
2519 }
2520 }
2521 return NULL;
2522}
2523
2524/* Deep copy a node: heap-dup all string fields so the binding owns them */
2525static void node_deep_copy(cbm_node_t *dst, const cbm_node_t *src) {

Callers 15

resolve_condition_valueFunction · 0.85
eval_conditionFunction · 0.85
eval_condition_partialFunction · 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_item_carried_nodeFunction · 0.85
project_star_varFunction · 0.85
binding_has_valueFunction · 0.85
ret_sink_feed_rowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected