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

Method Clone

common/values/parsed_message_value.cc:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165ParsedMessageValue ParsedMessageValue::Clone(
166 google::protobuf::Arena* absl_nonnull arena) const {
167 ABSL_DCHECK(arena != nullptr);
168
169 if (arena_ == arena) {
170 return *this;
171 }
172 auto* cloned = value_->New(arena);
173 cloned->CopyFrom(*value_);
174 return ParsedMessageValue(cloned, arena);
175}
176
177absl::Status ParsedMessageValue::GetFieldByName(
178 absl::string_view name, ProtoWrapperTypeOptions unboxing_options,

Callers

nothing calls this directly

Calls 3

CopyFromMethod · 0.80
ParsedMessageValueClass · 0.70
NewMethod · 0.45

Tested by

no test coverage detected