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

Method Equal

common/values/legacy_list_value.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace cel::common_internal {
32
33absl::Status LegacyListValue::Equal(
34 const Value& other,
35 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
36 google::protobuf::MessageFactory* absl_nonnull message_factory,
37 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
38 if (auto list_value = other.AsList(); list_value.has_value()) {
39 return ListValueEqual(*this, *list_value, descriptor_pool, message_factory,
40 arena, result);
41 }
42 *result = FalseValue();
43 return absl::OkStatus();
44}
45
46bool IsLegacyListValue(const Value& value) {
47 return value.variant_.Is<LegacyListValue>();

Callers

nothing calls this directly

Calls 4

ListValueEqualFunction · 0.85
FalseValueFunction · 0.85
AsListMethod · 0.45
has_valueMethod · 0.45

Tested by

no test coverage detected