Adds referenced entities of ORDER BY clause.
| 67 | |
| 68 | // Adds referenced entities of ORDER BY clause. |
| 69 | static 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). |
| 80 | static void _AST_MapReferencedNode(AST *ast, const cypher_astnode_t *node, bool force_mapping) { |
no test coverage detected