@@ -2759,7 +2759,7 @@ static Type mapSignatureFunctionType(ASTContext &ctx, Type type,
27592759OverloadSignature ValueDecl::getOverloadSignature () const {
27602760 OverloadSignature signature;
27612761
2762- signature.Name = getFullName ();
2762+ signature.Name = getName ();
27632763 signature.InProtocolExtension
27642764 = static_cast <bool >(getDeclContext ()->getExtendedProtocolDecl ());
27652765 signature.IsInstanceMember = isInstanceMember ();
@@ -6631,8 +6631,8 @@ SourceRange SubscriptDecl::getSignatureSourceRange() const {
66316631}
66326632
66336633DeclName AbstractFunctionDecl::getEffectiveFullName () const {
6634- if (getFullName ())
6635- return getFullName ();
6634+ if (getName ())
6635+ return getName ();
66366636
66376637 if (auto accessor = dyn_cast<AccessorDecl>(this )) {
66386638 auto &ctx = getASTContext ();
@@ -6645,7 +6645,7 @@ DeclName AbstractFunctionDecl::getEffectiveFullName() const {
66456645 case AccessorKind::Get:
66466646 case AccessorKind::Read:
66476647 case AccessorKind::Modify:
6648- return subscript ? subscript->getFullName ()
6648+ return subscript ? subscript->getName ()
66496649 : DeclName (ctx, storage->getBaseName (),
66506650 ArrayRef<Identifier>());
66516651
@@ -6657,8 +6657,8 @@ DeclName AbstractFunctionDecl::getEffectiveFullName() const {
66576657 argNames.push_back (Identifier ());
66586658 // The subscript index parameters.
66596659 if (subscript) {
6660- argNames.append (subscript->getFullName ().getArgumentNames ().begin (),
6661- subscript->getFullName ().getArgumentNames ().end ());
6660+ argNames.append (subscript->getName ().getArgumentNames ().begin (),
6661+ subscript->getName ().getArgumentNames ().end ());
66626662 }
66636663 return DeclName (ctx, storage->getBaseName (), argNames);
66646664 }
@@ -6818,7 +6818,7 @@ AbstractFunctionDecl::getObjCSelector(DeclName preferredName,
68186818 llvm_unreachable (" Unknown subclass of AbstractFunctionDecl" );
68196819 }
68206820
6821- auto argNames = getFullName ().getArgumentNames ();
6821+ auto argNames = getName ().getArgumentNames ();
68226822
68236823 // Use the preferred name if specified
68246824 if (preferredName) {
@@ -6974,7 +6974,7 @@ ParamDecl *AbstractFunctionDecl::getImplicitSelfDecl(bool createIfNeeded) {
69746974
69756975void AbstractFunctionDecl::setParameters (ParameterList *BodyParams) {
69766976#ifndef NDEBUG
6977- auto Name = getFullName ();
6977+ const auto Name = getName ();
69786978 if (!isa<DestructorDecl>(this ))
69796979 assert ((!Name || !Name.isSimpleName ()) && " Must have a compound name" );
69806980 assert (!Name || (Name.getArgumentNames ().size () == BodyParams->size ()));
@@ -7360,8 +7360,8 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
73607360
73617361bool ConstructorDecl::isObjCZeroParameterWithLongSelector () const {
73627362 // The initializer must have a single, non-empty argument name.
7363- if (getFullName ().getArgumentNames ().size () != 1 ||
7364- getFullName ().getArgumentNames ()[0 ].empty ())
7363+ if (getName ().getArgumentNames ().size () != 1 ||
7364+ getName ().getArgumentNames ()[0 ].empty ())
73657365 return false ;
73667366
73677367 auto *params = getParameters ();
@@ -7923,7 +7923,7 @@ struct DeclTraceFormatter : public UnifiedStatsReporter::TraceFormatter {
79237923 return ;
79247924 const Decl *D = static_cast <const Decl *>(Entity);
79257925 if (auto const *VD = dyn_cast<const ValueDecl>(D)) {
7926- VD->getFullName ().print (OS, false );
7926+ VD->getName ().print (OS, false );
79277927 } else {
79287928 OS << " <"
79297929 << Decl::getDescriptiveKindName (D->getDescriptiveKind ())
0 commit comments