Rename BoundNameAliasType to NameAliasType.

NameAliasType is dead! Long live NameAliasType!
This commit is contained in:
Doug Gregor
2018-03-25 21:03:57 -07:00
parent 0524741f6c
commit b2b69e8abf
29 changed files with 105 additions and 105 deletions

View File

@@ -1158,8 +1158,8 @@ static StringRef getTypeName(SDKContext &Ctx, Type Ty,
if (Ty->isVoid()) {
return Ctx.buffer("Void");
}
if (auto *BNAT = dyn_cast<BoundNameAliasType>(Ty.getPointer())) {
return BNAT->getDecl()->getNameStr();
if (auto *NAT = dyn_cast<NameAliasType>(Ty.getPointer())) {
return NAT->getDecl()->getNameStr();
}
if (Ty->getAnyNominal()) {
if (IsImplicitlyUnwrappedOptional) {
@@ -1362,9 +1362,9 @@ static SDKNode *constructTypeNode(SDKContext &Ctx, Type T,
SDKNode* Root = SDKNodeInitInfo(Ctx, T, InitInfo)
.createSDKNode(SDKNodeKind::TypeNominal);
if (auto BNAT = dyn_cast<BoundNameAliasType>(T.getPointer())) {
if (auto NAT = dyn_cast<NameAliasType>(T.getPointer())) {
SDKNode* Root = SDKNodeInitInfo(Ctx, T).createSDKNode(SDKNodeKind::TypeNameAlias);
Root->addChild(constructTypeNode(Ctx, BNAT->getCanonicalType()));
Root->addChild(constructTypeNode(Ctx, NAT->getCanonicalType()));
return Root;
}