| 399 | } |
| 400 | |
| 401 | bool IsBind(const cel::ComprehensionExpr* comprehension) { |
| 402 | static constexpr absl::string_view kUnusedIterVar = "#unused"; |
| 403 | |
| 404 | return comprehension->loop_condition().const_expr().has_bool_value() && |
| 405 | comprehension->loop_condition().const_expr().bool_value() == false && |
| 406 | comprehension->iter_var() == kUnusedIterVar && |
| 407 | comprehension->iter_var2().empty() && |
| 408 | comprehension->iter_range().has_list_expr() && |
| 409 | comprehension->iter_range().list_expr().elements().empty(); |
| 410 | } |
| 411 | |
| 412 | bool IsBlock(const cel::CallExpr* call) { return call->function() == kBlock; } |
| 413 |
no test coverage detected