(final CompileContext cc)
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public Expr optimize(final CompileContext cc) throws QueryException { |
| 63 | cond = cond.simplifyFor(Simplify.STRING, cc); |
| 64 | |
| 65 | // check if expression can be pre-evaluated |
| 66 | final Expr expr = opt(cc); |
| 67 | if(expr != this) return cc.replaceWith(this, expr); |
| 68 | |
| 69 | // combine types of return expressions |
| 70 | exprType.assign(SeqType.union(groups, true)).data(groups); |
| 71 | |
| 72 | return this; |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public Expr simplifyFor(final Simplify mode, final CompileContext cc) throws QueryException { |
no test coverage detected