72217 {
72218 if (type == ExtraTypeInfoType::INVALID_TYPE_INFO || type == ExtraTypeInfoType::STRING_TYPE_INFO ||
72219 type == ExtraTypeInfoType::GENERIC_TYPE_INFO) {
72220 if (!other_p) {
72221 if (!alias.empty()) {
72222 return false;
72223 }
72224 if (extension_info) {
72225 return false;
72226 }
72228 return true;
72229 }
72230 if (alias != other_p->alias) {
72231 return false;
72232 }
72233 if (!ExtensionTypeInfo::Equals(extension_info, other_p->extension_info)) {
72234 return false;
72235 }
72236 return true;
72237 }
72238 if (!other_p) {
72239 return false;
72240 }
72241 if (type != other_p->type) {
72242 return false;
72243 }
72244 if (alias != other_p->alias) {
72245 return false;
72246 }
72247 if (!ExtensionTypeInfo::Equals(extension_info, other_p->extension_info)) {
72248 return false;
72249 }
72250 return EqualsInternal(other_p);
72251}