@@ -324,7 +324,7 @@ class AttributedTypeRepr final
324324 friend class TypeRepr ;
325325};
326326
327- class IdentTypeRepr ;
327+ class UnqualifiedIdentTypeRepr ;
328328
329329// / This is the abstract base class for types that directly reference a
330330// / type declaration. In written syntax, this type representation consists of
@@ -361,15 +361,15 @@ class DeclRefTypeRepr : public TypeRepr {
361361 SourceRange AngleBrackets);
362362
363363 // / Returns the qualifier or base type representation. For example, `A.B`
364- // / for `A.B.C`. The base of a `IdentTypeRepr ` is null.
364+ // / for `A.B.C`. The base of a `UnqualifiedIdentTypeRepr ` is null.
365365 TypeRepr *getBase () const ;
366366
367367 // / Returns the root qualifier. For example, `A` for `A.B.C`. The root
368- // / qualifier of a `IdentTypeRepr ` is itself.
368+ // / qualifier of a `UnqualifiedIdentTypeRepr ` is itself.
369369 TypeRepr *getRoot ();
370370
371371 // / Returns the root qualifier. For example, `A` for `A.B.C`. The root
372- // / qualifier of a `IdentTypeRepr ` is itself.
372+ // / qualifier of a `UnqualifiedIdentTypeRepr ` is itself.
373373 const TypeRepr *getRoot () const ;
374374
375375 DeclNameLoc getNameLoc () const ;
@@ -426,18 +426,18 @@ class DeclRefTypeRepr : public TypeRepr {
426426// / Foo
427427// / Bar<Gen>
428428// / \endcode
429- class IdentTypeRepr : public DeclRefTypeRepr {
429+ class UnqualifiedIdentTypeRepr : public DeclRefTypeRepr {
430430protected:
431- IdentTypeRepr (TypeReprKind K, DeclNameLoc Loc, DeclNameRef Id,
432- unsigned NumGenericArgs, bool hasGenericArgList)
431+ UnqualifiedIdentTypeRepr (TypeReprKind K, DeclNameLoc Loc, DeclNameRef Id,
432+ unsigned NumGenericArgs, bool hasGenericArgList)
433433 : DeclRefTypeRepr(K, Id, Loc, NumGenericArgs, hasGenericArgList) {}
434434
435435public:
436436 static bool classof (const TypeRepr *T) {
437437 return T->getKind () == TypeReprKind::SimpleIdent ||
438438 T->getKind () == TypeReprKind::GenericIdent;
439439 }
440- static bool classof (const IdentTypeRepr *T) { return true ; }
440+ static bool classof (const UnqualifiedIdentTypeRepr *T) { return true ; }
441441
442442protected:
443443 SourceLoc getStartLocImpl () const { return getNameLoc ().getStartLoc (); }
@@ -446,11 +446,12 @@ class IdentTypeRepr : public DeclRefTypeRepr {
446446};
447447
448448// / A simple identifier type like "Int".
449- class SimpleIdentTypeRepr : public IdentTypeRepr {
449+ class SimpleIdentTypeRepr : public UnqualifiedIdentTypeRepr {
450450public:
451451 SimpleIdentTypeRepr (DeclNameLoc Loc, DeclNameRef Id)
452- : IdentTypeRepr(TypeReprKind::SimpleIdent, Loc, Id, /* NumGenericArgs=*/ 0 ,
453- /* HasAngleBrackets=*/ false ) {}
452+ : UnqualifiedIdentTypeRepr(TypeReprKind::SimpleIdent, Loc, Id,
453+ /* NumGenericArgs=*/ 0 ,
454+ /* HasAngleBrackets=*/ false ) {}
454455
455456 // SmallVector::emplace_back will never need to call this because
456457 // we reserve the right size, but it does try statically.
@@ -474,7 +475,7 @@ class SimpleIdentTypeRepr : public IdentTypeRepr {
474475// / Bar<Gen>
475476// / \endcode
476477class GenericIdentTypeRepr final
477- : public IdentTypeRepr ,
478+ : public UnqualifiedIdentTypeRepr ,
478479 private llvm::TrailingObjects<GenericIdentTypeRepr, TypeRepr *> {
479480 friend TrailingObjects;
480481 SourceRange AngleBrackets;
0 commit comments