(input: ParseStream)
| 1123 | } |
| 1124 | |
| 1125 | fn parse_list(input: ParseStream) -> Result { |
| 1126 | use mz_expr::func::variadic::ListCreate; |
| 1127 | |
| 1128 | input.parse::<kw::list>()?; |
| 1129 | |
| 1130 | // parse brackets |
| 1131 | let inner; |
| 1132 | syn::bracketed!(inner in input); |
| 1133 | |
| 1134 | let elem_type = SqlScalarType::Int64; // FIXME |
| 1135 | let func = ListCreate { elem_type }; |
| 1136 | let exprs = inner.parse_comma_sep(parse_expr)?; |
| 1137 | |
| 1138 | Ok(MirScalarExpr::call_variadic(func, exprs)) |
| 1139 | } |
| 1140 | |
| 1141 | fn parse_apply(input: ParseStream) -> Result { |
| 1142 | let ident = input.parse::<syn::Ident>()?; |
no test coverage detected