@@ -3940,7 +3940,7 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
3940
3940
if (genReq->getGenericParams())
3941
3941
continue;
3942
3942
3943
- inheritedTypeDecls[typeReq->getFullName ()].push_back(typeReq);
3943
+ inheritedTypeDecls[typeReq->getName ()].push_back(typeReq);
3944
3944
}
3945
3945
}
3946
3946
return TypeWalker::Action::Continue;
@@ -3967,7 +3967,7 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
3967
3967
llvm::raw_string_ostream out(result);
3968
3968
out << start;
3969
3969
interleave(assocType->getInherited(), [&](TypeLoc inheritedType) {
3970
- out << assocType->getFullName () << ": ";
3970
+ out << assocType->getName () << ": ";
3971
3971
if (auto inheritedTypeRepr = inheritedType.getTypeRepr())
3972
3972
inheritedTypeRepr->print(out);
3973
3973
else
@@ -3994,7 +3994,7 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
3994
3994
{
3995
3995
llvm::raw_string_ostream out(result);
3996
3996
out << start;
3997
- out << type->getFullName () << " == ";
3997
+ out << type->getName () << " == ";
3998
3998
if (auto typealias = dyn_cast<TypeAliasDecl>(type)) {
3999
3999
if (auto underlyingTypeRepr = typealias->getUnderlyingTypeRepr())
4000
4000
underlyingTypeRepr->print(out);
@@ -4053,7 +4053,7 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
4053
4053
4054
4054
// Check whether we inherited any types with the same name.
4055
4055
auto knownInherited =
4056
- inheritedTypeDecls.find(assocTypeDecl->getFullName ());
4056
+ inheritedTypeDecls.find(assocTypeDecl->getName ());
4057
4057
if (knownInherited == inheritedTypeDecls.end()) continue;
4058
4058
4059
4059
bool shouldWarnAboutRedeclaration =
@@ -4074,15 +4074,15 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
4074
4074
auto fixItWhere = getProtocolWhereLoc();
4075
4075
Diags.diagnose(assocTypeDecl,
4076
4076
diag::inherited_associated_type_redecl,
4077
- assocTypeDecl->getFullName (),
4077
+ assocTypeDecl->getName (),
4078
4078
inheritedFromProto->getDeclaredInterfaceType())
4079
4079
.fixItInsertAfter(
4080
4080
fixItWhere.Loc,
4081
4081
getAssociatedTypeReqs(assocTypeDecl, fixItWhere.Item))
4082
4082
.fixItRemove(assocTypeDecl->getSourceRange());
4083
4083
4084
4084
Diags.diagnose(inheritedAssocTypeDecl, diag::decl_declared_here,
4085
- inheritedAssocTypeDecl->getFullName ());
4085
+ inheritedAssocTypeDecl->getName ());
4086
4086
4087
4087
shouldWarnAboutRedeclaration = false;
4088
4088
}
@@ -4097,7 +4097,7 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
4097
4097
inheritedType->getDeclContext()->getSelfNominalTypeDecl();
4098
4098
Diags.diagnose(assocTypeDecl,
4099
4099
diag::associated_type_override_typealias,
4100
- assocTypeDecl->getFullName (),
4100
+ assocTypeDecl->getName (),
4101
4101
inheritedOwningDecl->getDescriptiveKind(),
4102
4102
inheritedOwningDecl->getDeclaredInterfaceType());
4103
4103
}
@@ -4157,7 +4157,7 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
4157
4157
getConcreteTypeReq(type, fixItWhere.Item))
4158
4158
.fixItRemove(type->getSourceRange());
4159
4159
Diags.diagnose(inheritedAssocTypeDecl, diag::decl_declared_here,
4160
- inheritedAssocTypeDecl->getFullName ());
4160
+ inheritedAssocTypeDecl->getName ());
4161
4161
4162
4162
shouldWarnAboutRedeclaration = false;
4163
4163
}
0 commit comments