MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _AST_MapSetLabelsReferences

Function _AST_MapSetLabelsReferences

src/ast/ast_build_reference_map.c:170–183  ·  view source on GitHub ↗

maps entities in SET clauses that update labels

Source from the content-addressed store, hash-verified

168
169// maps entities in SET clauses that update labels
170static void _AST_MapSetLabelsReferences
171(
172 AST *ast,
173 const cypher_astnode_t *set_item
174) {
175 ASSERT(cypher_astnode_type(set_item) == CYPHER_AST_SET_LABELS);
176
177 const cypher_astnode_t *identifier =
178 cypher_ast_set_labels_get_identifier(set_item);
179 ASSERT(cypher_astnode_type(identifier) == CYPHER_AST_IDENTIFIER);
180
181 const char *alias = cypher_ast_identifier_get_name(identifier);
182 _AST_UpdateRefMap(ast, alias);
183}
184
185// Maps entities in SET clauses that replace all properties.
186static void _AST_MapSetAllPropertiesReferences(AST *ast, const cypher_astnode_t *set_item) {

Callers 1

Calls 1

_AST_UpdateRefMapFunction · 0.85

Tested by

no test coverage detected