(final CompileContext cc)
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public Expr optimize(final CompileContext cc) throws QueryException { |
| 64 | expr = expr.simplifyFor(Simplify.STRING, cc); |
| 65 | |
| 66 | final SeqType st = expr.seqType(); |
| 67 | single = st.zeroOrOne() && !st.mayBeWrapped(); |
| 68 | |
| 69 | return expr instanceof Value ? cc.preEval(this) : this; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Tries to convert the specified expression into a range expression. |
no test coverage detected