Map the referred aliases (LHS) in entities projected by a WITH or RETURN clause.
| 496 | |
| 497 | // Map the referred aliases (LHS) in entities projected by a WITH or RETURN clause. |
| 498 | static void _AST_MapProjectionClause(AST *ast_segment, const cypher_astnode_t *projection) { |
| 499 | cypher_astnode_type_t type = cypher_astnode_type(projection); |
| 500 | ASSERT(type == CYPHER_AST_WITH || type == CYPHER_AST_RETURN); |
| 501 | |
| 502 | if(type == CYPHER_AST_WITH) { |
| 503 | _AST_MapWithReferredEntities(ast_segment, projection); |
| 504 | } else { |
| 505 | _AST_MapReturnReferredEntities(ast_segment, projection); |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | // Populate the AST's map of all referenced aliases. |
| 510 | void AST_BuildReferenceMap(AST *ast, const cypher_astnode_t *project_clause) { |
no test coverage detected