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

Method Enum

common/value.cc:336–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334} // namespace
335
336Value Value::Enum(const google::protobuf::EnumValueDescriptor* absl_nonnull value) {
337 ABSL_DCHECK(value != nullptr);
338 if (value->type()->full_name() == "google.protobuf.NullValue") {
339 ABSL_DCHECK_EQ(value->number(), 0);
340 return NullValue();
341 }
342 return NonNullEnumValue(value);
343}
344
345Value Value::Enum(const google::protobuf::EnumDescriptor* absl_nonnull type,
346 int32_t number) {

Callers

nothing calls this directly

Calls 4

NonNullEnumValueFunction · 0.85
typeMethod · 0.80
numberMethod · 0.80
NullValueClass · 0.50

Tested by

no test coverage detected