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

Function _AST_MapProjectionClause

src/ast/ast_build_reference_map.c:498–507  ·  view source on GitHub ↗

Map the referred aliases (LHS) in entities projected by a WITH or RETURN clause.

Source from the content-addressed store, hash-verified

496
497// Map the referred aliases (LHS) in entities projected by a WITH or RETURN clause.
498static 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.
510void AST_BuildReferenceMap(AST *ast, const cypher_astnode_t *project_clause) {

Callers 1

AST_BuildReferenceMapFunction · 0.85

Calls 2

Tested by

no test coverage detected