mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Preparations for removal of getName on ValueDecl (#9972)
With the introduction of special decl names, `Identifier getName()` on `ValueDecl` will be removed and pushed down to nominal declarations whose name is guaranteed not to be special. Prepare for this by calling to `DeclBaseName getBaseName()` instead where appropriate.
This commit is contained in:
@@ -104,7 +104,7 @@ ValueDecl *DerivedConformance::deriveBridgedNSError(TypeChecker &tc,
|
||||
|
||||
auto enumType = cast<EnumDecl>(type);
|
||||
|
||||
if (requirement->getName() == tc.Context.Id_nsErrorDomain)
|
||||
if (requirement->getBaseName() == tc.Context.Id_nsErrorDomain)
|
||||
return deriveBridgedNSError_enum_nsErrorDomain(tc, parentDecl, enumType);
|
||||
|
||||
tc.diagnose(requirement->getLoc(),
|
||||
|
||||
Reference in New Issue
Block a user