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

Method Next1

common/legacy_value.cc:117–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 absl::StatusOr<bool> Next1(
118 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
119 google::protobuf::MessageFactory* absl_nonnull message_factory,
120 google::protobuf::Arena* absl_nonnull arena,
121 Value* absl_nonnull key_or_value) override {
122 ABSL_DCHECK(descriptor_pool != nullptr);
123 ABSL_DCHECK(message_factory != nullptr);
124 ABSL_DCHECK(arena != nullptr);
125 ABSL_DCHECK(key_or_value != nullptr);
126
127 if (index_ >= size_) {
128 return false;
129 }
130 auto cel_value = cel_list_->Get(arena, index_);
131 CEL_RETURN_IF_ERROR(ModernValue(arena, cel_value, *key_or_value));
132 ++index_;
133 return true;
134 }
135
136 absl::StatusOr<bool> Next2(
137 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