[index] Move associated type into common macro NFC

Now that we have first-class associated types it works the same as the
other simple cases.
This commit is contained in:
Ben Langmuir
2016-04-13 14:15:16 -07:00
parent ad269b0e1f
commit d817555778

View File

@@ -170,9 +170,6 @@ public:
UIdent visitVarDecl(const VarDecl *D);
UIdent visitParamDecl(const ParamDecl *D);
UIdent visitExtensionDecl(const ExtensionDecl *D);
UIdent visitAssociatedTypeDecl(const AssociatedTypeDecl *D) {
return IsRef ? KindRefAssociatedType : KindDeclAssociatedType;
}
#define UID_FOR(CLASS) \
UIdent visit##CLASS##Decl(const CLASS##Decl *) { \
@@ -184,6 +181,7 @@ public:
UID_FOR(EnumElement)
UID_FOR(Protocol)
UID_FOR(TypeAlias)
UID_FOR(AssociatedType)
UID_FOR(GenericTypeParam)
UID_FOR(Constructor)
UID_FOR(Destructor)