@@ -957,7 +957,6 @@ class GenericParamScope final : public ASTScopeImpl {
957
957
protected:
958
958
bool lookupLocalsOrMembers (ArrayRef<const ASTScopeImpl *>,
959
959
DeclConsumer) const override ;
960
- bool doesContextMatchStartingContext (const DeclContext *) const override ;
961
960
};
962
961
963
962
// / Concrete class for a function/initializer/deinitializer
@@ -1367,42 +1366,6 @@ class ClosureParametersScope final : public ASTScopeImpl {
1367
1366
NullablePtr<Expr> getExprIfAny () const override { return closureExpr; }
1368
1367
Expr *getExpr () const { return closureExpr; }
1369
1368
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 () {}
1406
1369
1407
1370
protected:
1408
1371
ASTScopeImpl *expandSpecifically (ScopeCreator &scopeCreator) override ;
@@ -1413,10 +1376,6 @@ class ClosureBodyScope final : public AbstractClosureScope {
1413
1376
protected:
1414
1377
bool lookupLocalsOrMembers (ArrayRef<const ASTScopeImpl *>,
1415
1378
DeclConsumer) const override ;
1416
- public:
1417
- std::string getClassName () const override ;
1418
- SourceRange
1419
- getSourceRangeOfThisASTNode (bool omitAssertions = false ) const override ;
1420
1379
};
1421
1380
1422
1381
class TopLevelCodeScope final : public ASTScopeImpl {
0 commit comments