See LegacyListValueInterface::Get for documentation.
| 514 | |
| 515 | // See LegacyListValueInterface::Get for documentation. |
| 516 | absl::Status LegacyListValue::Get( |
| 517 | size_t index, const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 518 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 519 | google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const { |
| 520 | if (ABSL_PREDICT_FALSE(index < 0 || index >= impl_->size())) { |
| 521 | *result = ErrorValue(absl::InvalidArgumentError("index out of bounds")); |
| 522 | return absl::OkStatus(); |
| 523 | } |
| 524 | CEL_RETURN_IF_ERROR( |
| 525 | ModernValue(arena, impl_->Get(arena, static_cast<int>(index)), *result)); |
| 526 | return absl::OkStatus(); |
| 527 | } |
| 528 | |
| 529 | absl::Status LegacyListValue::ForEach( |
| 530 | ForEachWithIndexCallback callback, |
no test coverage detected