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

Method Next1

common/legacy_value.cc:187–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 absl::StatusOr<bool> Next1(
188 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
189 google::protobuf::MessageFactory* absl_nonnull message_factory,
190 google::protobuf::Arena* absl_nonnull arena,
191 Value* absl_nonnull key_or_value) override {
192 ABSL_DCHECK(descriptor_pool != nullptr);
193 ABSL_DCHECK(message_factory != nullptr);
194 ABSL_DCHECK(arena != nullptr);
195 ABSL_DCHECK(key_or_value != nullptr);
196
197 if (index_ >= size_) {
198 return false;
199 }
200 CEL_RETURN_IF_ERROR(ProjectKeys(arena));
201 auto cel_value = (*cel_list_)->Get(arena, index_);
202 CEL_RETURN_IF_ERROR(ModernValue(arena, cel_value, *key_or_value));
203 ++index_;
204 return true;
205 }
206
207 absl::StatusOr<bool> Next2(
208 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