| 241 | } |
| 242 | |
| 243 | static 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 |
| 261 | static void _AST_MapRemoveLabelsReferences |
no test coverage detected