mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user