| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | protected final Expr opt(final CompileContext cc) throws QueryException { |
| 85 | final Expr nodes = arg(0); |
| 86 | final Data data = nodes.data(); |
| 87 | if(data != null && !data.meta.updindex && !(this instanceof DbNodePre)) { |
| 88 | // no ID-PRE mapping: work with PRE values |
| 89 | return cc.function(_DB_NODE_PRE, info, nodes); |
| 90 | } |
| 91 | exprType.assign(seqType(), nodes.seqType().occ, nodes.size()); |
| 92 | return this; |
| 93 | } |
| 94 | |
| 95 | @Override |
| 96 | public final Expr simplifyFor(final Simplify mode, final CompileContext cc) |