@@ -957,7 +957,6 @@ class GenericParamScope final : public ASTScopeImpl {
957957protected:
958958 bool lookupLocalsOrMembers (ArrayRef<const ASTScopeImpl *>,
959959 DeclConsumer) const override ;
960- bool doesContextMatchStartingContext (const DeclContext *) const override ;
961960};
962961
963962// / Concrete class for a function/initializer/deinitializer
@@ -1367,42 +1366,6 @@ class ClosureParametersScope final : public ASTScopeImpl {
13671366 NullablePtr<Expr> getExprIfAny () const override { return closureExpr; }
13681367 Expr *getExpr () const { return closureExpr; }
13691368 NullablePtr<const void > getReferrent () const override ;
1370- };
1371-
1372- // / For a closure with named parameters, this scope does the local bindings.
1373- // / Absent if no "in".
1374- class ClosureParametersScope final : public AbstractClosureScope {
1375- public:
1376- ClosureParametersScope (ClosureExpr *closureExpr,
1377- NullablePtr<CaptureListExpr> captureList)
1378- : AbstractClosureScope(closureExpr, captureList) {}
1379- virtual ~ClosureParametersScope () {}
1380-
1381- std::string getClassName () const override ;
1382- SourceRange
1383- getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
1384-
1385- // / Since explicit captures of \c self by closures enable the use of implicit
1386- // / \c self, we need to make sure that the appropriate \c self is used as the
1387- // / base decl for these uses (otherwise, the capture would be marked as
1388- // / unused. \c ClosureParametersScope::capturedSelfDC() checks if we have such
1389- // / a capture of self.
1390- NullablePtr<DeclContext> capturedSelfDC () const override ;
1391-
1392- protected:
1393- ASTScopeImpl *expandSpecifically (ScopeCreator &) override ;
1394- bool lookupLocalsOrMembers (ArrayRef<const ASTScopeImpl *>,
1395- DeclConsumer) const override ;
1396- };
1397-
1398- // The body encompasses the code in the closure; the part after the "in" if
1399- // there is an "in"
1400- class ClosureBodyScope final : public AbstractClosureScope {
1401- public:
1402- ClosureBodyScope (ClosureExpr *closureExpr,
1403- NullablePtr<CaptureListExpr> captureList)
1404- : AbstractClosureScope(closureExpr, captureList) {}
1405- virtual ~ClosureBodyScope () {}
14061369
14071370protected:
14081371 ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
@@ -1413,10 +1376,6 @@ class ClosureBodyScope final : public AbstractClosureScope {
14131376protected:
14141377 bool lookupLocalsOrMembers (ArrayRef<const ASTScopeImpl *>,
14151378 DeclConsumer) const override ;
1416- public:
1417- std::string getClassName () const override ;
1418- SourceRange
1419- getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
14201379};
14211380
14221381class TopLevelCodeScope final : public ASTScopeImpl {
0 commit comments