Skip to content

Commit d817555

Browse files
committed
[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.
1 parent ad269b0 commit d817555

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ class UIdentVisitor : public ASTVisitor<UIdentVisitor,
170170
UIdent visitVarDecl(const VarDecl *D);
171171
UIdent visitParamDecl(const ParamDecl *D);
172172
UIdent visitExtensionDecl(const ExtensionDecl *D);
173-
UIdent visitAssociatedTypeDecl(const AssociatedTypeDecl *D) {
174-
return IsRef ? KindRefAssociatedType : KindDeclAssociatedType;
175-
}
176173

177174
#define UID_FOR(CLASS) \
178175
UIdent visit##CLASS##Decl(const CLASS##Decl *) { \
@@ -184,6 +181,7 @@ class UIdentVisitor : public ASTVisitor<UIdentVisitor,
184181
UID_FOR(EnumElement)
185182
UID_FOR(Protocol)
186183
UID_FOR(TypeAlias)
184+
UID_FOR(AssociatedType)
187185
UID_FOR(GenericTypeParam)
188186
UID_FOR(Constructor)
189187
UID_FOR(Destructor)

0 commit comments

Comments
 (0)