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

Function _AST_MapRemoveLabelsReferences

src/ast/ast_build_reference_map.c:261–276  ·  view source on GitHub ↗

maps entities in REMOVE clauses that update labels

Source from the content-addressed store, hash-verified

259
260// maps entities in REMOVE clauses that update labels
261static void _AST_MapRemoveLabelsReferences
262(
263 AST *ast,
264 const cypher_astnode_t *remove_item
265) {
266 ASSERT(ast != NULL);
267 ASSERT(remove_item != NULL);
268 ASSERT(cypher_astnode_type(remove_item) == CYPHER_AST_REMOVE_LABELS);
269
270 const cypher_astnode_t *identifier =
271 cypher_ast_remove_labels_get_identifier(remove_item);
272 ASSERT(cypher_astnode_type(identifier) == CYPHER_AST_IDENTIFIER);
273
274 const char *alias = cypher_ast_identifier_get_name(identifier);
275 _AST_UpdateRefMap(ast, alias);
276}
277
278static void _AST_MapRemoveItemReferences
279(

Callers 1

Calls 1

_AST_UpdateRefMapFunction · 0.85

Tested by

no test coverage detected