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

Method Next2

common/values/parsed_json_map_value.cc:386–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384 }
385
386 absl::StatusOr<bool> Next2(
387 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
388 google::protobuf::MessageFactory* absl_nonnull message_factory,
389 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull key,
390 Value* absl_nullable value) override {
391 ABSL_DCHECK(descriptor_pool != nullptr);
392 ABSL_DCHECK(message_factory != nullptr);
393 ABSL_DCHECK(arena != nullptr);
394 ABSL_DCHECK(key != nullptr);
395
396 if (begin_ == end_) {
397 return false;
398 }
399 *key = Value::WrapMapFieldKeyString(begin_.GetKey(), message_, arena);
400 if (value != nullptr) {
401 *value = common_internal::ParsedJsonValue(
402 &begin_.GetValueRef().GetMessageValue(), arena);
403 }
404 ++begin_;
405 return true;
406 }
407
408 private:
409 const google::protobuf::Message* absl_nonnull const message_;

Callers

nothing calls this directly

Calls 2

ParsedJsonValueFunction · 0.85
GetKeyMethod · 0.80

Tested by

no test coverage detected