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

Function _AST_MapOrderByReferences

src/ast/ast_build_reference_map.c:69–77  ·  view source on GitHub ↗

Adds referenced entities of ORDER BY clause.

Source from the content-addressed store, hash-verified

67
68// Adds referenced entities of ORDER BY clause.
69static void _AST_MapOrderByReferences(AST *ast, const cypher_astnode_t *order_by) {
70 uint count = cypher_ast_order_by_nitems(order_by);
71 // Go over each order by expression.
72 for(uint i = 0; i < count; i++) {
73 const cypher_astnode_t *item = cypher_ast_order_by_get_item(order_by, i);
74 const cypher_astnode_t *expression = cypher_ast_sort_item_get_expression(item);
75 _AST_MapExpression(ast, expression);
76 }
77}
78
79// Adds a node to the referenced entities rax, in case it has labels or properties (inline filter).
80static void _AST_MapReferencedNode(AST *ast, const cypher_astnode_t *node, bool force_mapping) {

Calls 1

_AST_MapExpressionFunction · 0.85

Tested by

no test coverage detected