(args: &[ast::FunctionArg])
| 13 | use crate::types_array::ArrayCoordLiteral; |
| 14 | |
| 15 | pub(super) fn collect_args(args: &[ast::FunctionArg]) -> Vec<ast::Expr> { |
| 16 | args.iter() |
| 17 | .filter_map(|a| match a { |
| 18 | ast::FunctionArg::Unnamed(ast::FunctionArgExpr::Expr(e)) => Some(e.clone()), |
| 19 | _ => None, |
| 20 | }) |
| 21 | .collect() |
| 22 | } |
| 23 | |
| 24 | pub(super) fn require_array_name( |
| 25 | args: &[ast::Expr], |
no test coverage detected