@@ -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.
@@ -1579,8 +1577,6 @@ static void diagRecursivePropertyAccess(const Expr *E, const DeclContext *DC) {
1579
1577
cast<VarDecl>(DRE->getDecl ())->isSelfParameter ();
1580
1578
}
1581
1579
1582
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
1583
-
1584
1580
MacroWalking getMacroWalkingBehavior () const override {
1585
1581
return MacroWalking::Expansion;
1586
1582
}
@@ -2226,8 +2222,6 @@ static void diagnoseImplicitSelfUseInClosure(const Expr *E,
2226
2222
return parentContext->getInnermostClosureForSelfCapture ();
2227
2223
}
2228
2224
2229
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
2230
-
2231
2225
bool shouldRecordClosure (const AbstractClosureExpr *E) {
2232
2226
// Record all closures in Swift 6 mode.
2233
2227
if (Ctx.isSwiftVersionAtLeast (6 ))
@@ -4560,8 +4554,6 @@ static void checkStmtConditionTrailingClosure(ASTContext &ctx, const Expr *E) {
4560
4554
public:
4561
4555
DiagnoseWalker (ASTContext &ctx) : Ctx(ctx) { }
4562
4556
4563
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
4564
-
4565
4557
MacroWalking getMacroWalkingBehavior () const override {
4566
4558
return MacroWalking::Expansion;
4567
4559
}
@@ -4685,8 +4677,6 @@ class ObjCSelectorWalker : public ASTWalker {
4685
4677
ObjCSelectorWalker (const DeclContext *dc, Type selectorTy)
4686
4678
: Ctx(dc->getASTContext ()), DC(dc), SelectorTy(selectorTy) { }
4687
4679
4688
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
4689
-
4690
4680
MacroWalking getMacroWalkingBehavior () const override {
4691
4681
return MacroWalking::Expansion;
4692
4682
}
@@ -5547,8 +5537,6 @@ static void diagnoseUnintendedOptionalBehavior(const Expr *E,
5547
5537
}
5548
5538
}
5549
5539
5550
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
5551
-
5552
5540
MacroWalking getMacroWalkingBehavior () const override {
5553
5541
return MacroWalking::Expansion;
5554
5542
}
@@ -5622,8 +5610,6 @@ static void diagnoseDeprecatedWritableKeyPath(const Expr *E,
5622
5610
}
5623
5611
}
5624
5612
5625
- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
5626
-
5627
5613
MacroWalking getMacroWalkingBehavior () const override {
5628
5614
return MacroWalking::Expansion;
5629
5615
}
0 commit comments