(&self, args: &[Expr])
| 682 | } |
| 683 | |
| 684 | fn array_element_to_sql(&self, args: &[Expr]) -> Result<ast::Expr> { |
| 685 | assert_eq_or_internal_err!( |
| 686 | args.len(), |
| 687 | 2, |
| 688 | "array_element must have exactly 2 arguments" |
| 689 | ); |
| 690 | let array = self.expr_to_sql(&args[0])?; |
| 691 | let index = self.expr_to_sql(&args[1])?; |
| 692 | Ok(ast::Expr::CompoundFieldAccess { |
| 693 | root: Box::new(array), |
| 694 | access_chain: vec![ast::AccessExpr::Subscript(Subscript::Index { index })], |
| 695 | }) |
| 696 | } |
| 697 | |
| 698 | fn named_struct_to_sql(&self, args: &[Expr]) -> Result<ast::Expr> { |
| 699 | assert_or_internal_err!( |
no test coverage detected