| 169 | bool HasNext() override { return index_ < size_; } |
| 170 | |
| 171 | absl::Status Next(const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 172 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 173 | google::protobuf::Arena* absl_nonnull arena, |
| 174 | Value* absl_nonnull result) override { |
| 175 | if (!HasNext()) { |
| 176 | return absl::FailedPreconditionError( |
| 177 | "ValueIterator::Next() called when ValueIterator::HasNext() returns " |
| 178 | "false"); |
| 179 | } |
| 180 | CEL_RETURN_IF_ERROR(ProjectKeys(arena)); |
| 181 | auto cel_value = (*cel_list_)->Get(arena, index_); |
| 182 | CEL_RETURN_IF_ERROR(ModernValue(arena, cel_value, *result)); |
| 183 | ++index_; |
| 184 | return absl::OkStatus(); |
| 185 | } |
| 186 | |
| 187 | absl::StatusOr<bool> Next1( |
| 188 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
nothing calls this directly
no test coverage detected