[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:
Brent Royal-Gordon
2019-12-10 19:46:10 -08:00
parent 4c41794c9d
commit 1df792ae9f
26 changed files with 198 additions and 198 deletions

View File

@@ -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,