Creates a new, optimized list expression. @param cc compilation context @param info input info (can be null) @param exprs expressions @return list, single expression or empty sequence @throws QueryException query exception
(final CompileContext cc, final InputInfo info, final Expr... exprs)
| 39 | * @throws QueryException query exception |
| 40 | */ |
| 41 | public static Expr get(final CompileContext cc, final InputInfo info, final Expr... exprs) |
| 42 | throws QueryException { |
| 43 | final int el = exprs.length; |
| 44 | return el > 1 ? new List(info, exprs).optimize(cc) : el > 0 ? exprs[0] : Empty.VALUE; |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public void checkUp() throws QueryException { |
no test coverage detected