(r *RootExpr)
| 70 | type rewriteChain []ASTRewriter |
| 71 | |
| 72 | func (c rewriteChain) RewriteRoot(r *RootExpr) *RootExpr { |
| 73 | for _, rw := range c { |
| 74 | r = rw.RewriteRoot(r) |
| 75 | } |
| 76 | return r |
| 77 | } |
| 78 | |
| 79 | // newBinaryOpToArrayOpRewriter creates a ASTRewriter that rewrites certain BinaryOperation expressions to |
| 80 | // equivalent array operations in the TraceQL AST. It handles the following cases: |
no test coverage detected