@@ -105,8 +105,6 @@ static void diagSyntacticUseRestrictions(const Expr *E, const DeclContext *DC,
105
105
return Action::Continue ();
106
106
}
107
107
108
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
109
-
110
108
PreWalkResult<Expr *> walkToExprPre (Expr *E) override {
111
109
// See through implicit conversions of the expression. We want to be able
112
110
// to associate the parent of this expression with the ultimate callee.
@@ -1581,8 +1579,6 @@ static void diagRecursivePropertyAccess(const Expr *E, const DeclContext *DC) {
1581
1579
cast<VarDecl>(DRE->getDecl ())->isSelfParameter ();
1582
1580
}
1583
1581
1584
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
1585
-
1586
1582
MacroWalking getMacroWalkingBehavior () const override {
1587
1583
return MacroWalking::Expansion;
1588
1584
}
@@ -2228,8 +2224,6 @@ static void diagnoseImplicitSelfUseInClosure(const Expr *E,
2228
2224
return parentContext->getInnermostClosureForSelfCapture ();
2229
2225
}
2230
2226
2231
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
2232
-
2233
2227
bool shouldRecordClosure (const AbstractClosureExpr *E) {
2234
2228
// Record all closures in Swift 6 mode.
2235
2229
if (Ctx.isSwiftVersionAtLeast (6 ))
@@ -4561,8 +4555,6 @@ static void checkStmtConditionTrailingClosure(ASTContext &ctx, const Expr *E) {
4561
4555
public:
4562
4556
DiagnoseWalker (ASTContext &ctx) : Ctx(ctx) { }
4563
4557
4564
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
4565
-
4566
4558
MacroWalking getMacroWalkingBehavior () const override {
4567
4559
return MacroWalking::Expansion;
4568
4560
}
@@ -4686,8 +4678,6 @@ class ObjCSelectorWalker : public ASTWalker {
4686
4678
ObjCSelectorWalker (const DeclContext *dc, Type selectorTy)
4687
4679
: Ctx(dc->getASTContext ()), DC(dc), SelectorTy(selectorTy) { }
4688
4680
4689
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
4690
-
4691
4681
MacroWalking getMacroWalkingBehavior () const override {
4692
4682
return MacroWalking::Expansion;
4693
4683
}
@@ -5548,8 +5538,6 @@ static void diagnoseUnintendedOptionalBehavior(const Expr *E,
5548
5538
}
5549
5539
}
5550
5540
5551
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
5552
-
5553
5541
MacroWalking getMacroWalkingBehavior () const override {
5554
5542
return MacroWalking::Expansion;
5555
5543
}
@@ -5623,8 +5611,6 @@ static void diagnoseDeprecatedWritableKeyPath(const Expr *E,
5623
5611
}
5624
5612
}
5625
5613
5626
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
5627
-
5628
5614
MacroWalking getMacroWalkingBehavior () const override {
5629
5615
return MacroWalking::Expansion;
5630
5616
}
0 commit comments