mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Convert TypeRepr to use DeclName(Loc)?
Replaces `ComponentIdentTypeRepr::getIdentifier()` and `getIdLoc()` with `getNameRef()` and `getNameLoc()`, which use `DeclName` and `DeclNameRef` respectively.
This commit is contained in:
@@ -42,7 +42,7 @@ deriveBodyBridgedNSError_enum_nsErrorDomain(AbstractFunctionDecl *domainDecl,
|
||||
auto self = domainDecl->getImplicitSelfDecl();
|
||||
|
||||
auto selfRef = new (C) DeclRefExpr(self, DeclNameLoc(), /*implicit*/ true);
|
||||
auto stringType = TypeExpr::createForDecl(SourceLoc(), C.getStringDecl(),
|
||||
auto stringType = TypeExpr::createForDecl(DeclNameLoc(), C.getStringDecl(),
|
||||
domainDecl, /*implicit*/ true);
|
||||
auto initReflectingCall =
|
||||
CallExpr::createImplicit(C, stringType,
|
||||
|
||||
Reference in New Issue
Block a user