| 100 | bool HasNext() override { return index_ < size_; } |
| 101 | |
| 102 | absl::Status Next(const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 103 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 104 | google::protobuf::Arena* absl_nonnull arena, |
| 105 | Value* absl_nonnull result) override { |
| 106 | if (!HasNext()) { |
| 107 | return absl::FailedPreconditionError( |
| 108 | "ValueIterator::Next() called when ValueIterator::HasNext() returns " |
| 109 | "false"); |
| 110 | } |
| 111 | auto cel_value = cel_list_->Get(arena, index_); |
| 112 | CEL_RETURN_IF_ERROR(ModernValue(arena, cel_value, *result)); |
| 113 | ++index_; |
| 114 | return absl::OkStatus(); |
| 115 | } |
| 116 | |
| 117 | absl::StatusOr<bool> Next1( |
| 118 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
nothing calls this directly
no test coverage detected