aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/parser_test.go
AgeCommit message (Collapse)Author
2025-06-10Add method to merge subtrees in a clause treeJP Appel
Add `Flatten` method to `query.Clause` which merges a parent clause with its children. The merge occurs if clauses have the same operator. The merge transforms the tree similar to the examples below: (+ (+ (+ (+ a b) c) d) e) -> (+ a b c d e) (+ (+ a b) c (* d e)) -> (+ a b c (* d e))