maps entities in SET clauses that update labels
| 168 | |
| 169 | // maps entities in SET clauses that update labels |
| 170 | static 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. |
| 186 | static void _AST_MapSetAllPropertiesReferences(AST *ast, const cypher_astnode_t *set_item) { |
no test coverage detected