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

Function _AST_MapRemovePropertyReferences

src/ast/ast_build_reference_map.c:243–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static void _AST_MapRemovePropertyReferences
244(
245 AST *ast,
246 const cypher_astnode_t *remove_item
247) {
248 ASSERT(cypher_astnode_type(remove_item) == CYPHER_AST_REMOVE_PROPERTY);
249
250 const cypher_astnode_t *ast_prop =
251 cypher_ast_remove_property_get_property(remove_item);
252 const cypher_astnode_t *ast_entity =
253 cypher_ast_property_operator_get_expression(ast_prop);
254 ASSERT(cypher_astnode_type(ast_entity) == CYPHER_AST_IDENTIFIER);
255
256 const char *alias = cypher_ast_identifier_get_name(ast_entity);
257 _AST_UpdateRefMap(ast, alias);
258}
259
260// maps entities in REMOVE clauses that update labels
261static void _AST_MapRemoveLabelsReferences

Callers 1

Calls 1

_AST_UpdateRefMapFunction · 0.85

Tested by

no test coverage detected