File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -859,6 +859,7 @@ class NodeAdder
859
859
VISIT_AND_CREATE_WHOLE_PORTION (ExtensionDecl, ExtensionScope)
860
860
VISIT_AND_CREATE_WHOLE_PORTION (StructDecl, NominalTypeScope)
861
861
VISIT_AND_CREATE_WHOLE_PORTION (ClassDecl, NominalTypeScope)
862
+ VISIT_AND_CREATE_WHOLE_PORTION (ProtocolDecl, NominalTypeScope)
862
863
VISIT_AND_CREATE_WHOLE_PORTION (EnumDecl, NominalTypeScope)
863
864
VISIT_AND_CREATE_WHOLE_PORTION (TypeAliasDecl, TypeAliasScope)
864
865
VISIT_AND_CREATE_WHOLE_PORTION (OpaqueTypeDecl, OpaqueTypeScope)
@@ -871,12 +872,6 @@ class NodeAdder
871
872
return visitAbstractFunctionDecl (ad, p, scopeCreator);
872
873
}
873
874
874
- NullablePtr<ASTScopeImpl> visitProtocolDecl (ProtocolDecl *e, ASTScopeImpl *p,
875
- ScopeCreator &scopeCreator) {
876
- return scopeCreator.ifUniqueConstructWithPortionExpandAndInsert <
877
- NominalTypeScope, GenericTypeOrExtensionWholePortion>(p, e);
878
- }
879
-
880
875
#pragma mark simple creation with deferred nodes
881
876
882
877
// Each of the following creates a new scope, so that nodes which were parsed
You can’t perform that action at this time.
0 commit comments