MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Next

Method Next

common/legacy_value.cc:171–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

ModernValueFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected