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

Method Next2

common/values/parsed_json_list_value.cc:317–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 }
316
317 absl::StatusOr<bool> Next2(
318 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
319 google::protobuf::MessageFactory* absl_nonnull message_factory,
320 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull key,
321 Value* absl_nullable value) override {
322 ABSL_DCHECK(descriptor_pool != nullptr);
323 ABSL_DCHECK(message_factory != nullptr);
324 ABSL_DCHECK(arena != nullptr);
325 ABSL_DCHECK(key != nullptr);
326
327 if (index_ >= size_) {
328 return false;
329 }
330 if (value != nullptr) {
331 *value = common_internal::ParsedJsonValue(
332 &reflection_.Values(*message_, index_), arena);
333 }
334 *key = IntValue(index_);
335 ++index_;
336 return true;
337 }
338
339 private:
340 const google::protobuf::Message* absl_nonnull const message_;

Callers

nothing calls this directly

Calls 3

ParsedJsonValueFunction · 0.85
ValuesMethod · 0.80
IntValueClass · 0.70

Tested by

no test coverage detected