(final CompileContext cc)
| 24 | } |
| 25 | |
| 26 | @Override |
| 27 | protected Expr opt(final CompileContext cc) { |
| 28 | final Expr map = arg(0); |
| 29 | if(map.seqType().type instanceof final MapType mt) { |
| 30 | final SeqType vt = mt.valueType(); |
| 31 | exprType.assign(vt.with(Occ.ZERO_OR_MORE), vt.one() ? map.structSize() : -1); |
| 32 | } |
| 33 | return this; |
| 34 | } |
| 35 | } |