| 76 | } |
| 77 | |
| 78 | bool IsListLiteralWithValidArgs(const Expr &arg) { |
| 79 | if (const auto *list_expr = arg.has_list_expr() ? &arg.list_expr() : nullptr; |
| 80 | list_expr) { |
| 81 | if (list_expr->elements().empty()) { |
| 82 | return false; |
| 83 | } |
| 84 | for (const auto &element : list_expr->elements()) { |
| 85 | if (!IsValidArgType(element.expr())) { |
| 86 | return false; |
| 87 | } |
| 88 | } |
| 89 | return true; |
| 90 | } |
| 91 | return false; |
| 92 | } |
| 93 | |
| 94 | } // namespace |
| 95 |
no test coverage detected