| 187 | } |
| 188 | |
| 189 | ParsedJsonMapValue ParsedJsonMapValue::Clone( |
| 190 | google::protobuf::Arena* absl_nonnull arena) const { |
| 191 | ABSL_DCHECK(arena != nullptr); |
| 192 | |
| 193 | if (value_ == nullptr) { |
| 194 | return ParsedJsonMapValue(); |
| 195 | } |
| 196 | if (arena_ == arena) { |
| 197 | return *this; |
| 198 | } |
| 199 | auto* cloned = value_->New(arena); |
| 200 | cloned->CopyFrom(*value_); |
| 201 | return ParsedJsonMapValue(cloned, arena); |
| 202 | } |
| 203 | |
| 204 | size_t ParsedJsonMapValue::Size() const { |
| 205 | if (value_ == nullptr) { |
nothing calls this directly
no test coverage detected