(ctx: CtxRef, input: ParseStream)
| 320 | } |
| 321 | |
| 322 | fn parse_project(ctx: CtxRef, input: ParseStream) -> Result { |
| 323 | let project = input.parse::<kw::Project>()?; |
| 324 | |
| 325 | let content; |
| 326 | syn::parenthesized!(content in input); |
| 327 | let outputs = content.parse_comma_sep(scalar::parse_column_index)?; |
| 328 | let parse_input = ParseChildren::new(input, project.span().start()); |
| 329 | let input = Box::new(parse_input.parse_one(ctx, parse_expr)?); |
| 330 | |
| 331 | Ok(MirRelationExpr::Project { input, outputs }) |
| 332 | } |
| 333 | |
| 334 | fn parse_map(ctx: CtxRef, input: ParseStream) -> Result { |
| 335 | let map = input.parse::<kw::Map>()?; |
no test coverage detected