@@ -105,8 +105,6 @@ static void diagSyntacticUseRestrictions(const Expr *E, const DeclContext *DC,
105105 return Action::Continue ();
106106 }
107107
108- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
109-
110108 PreWalkResult<Expr *> walkToExprPre (Expr *E) override {
111109 // See through implicit conversions of the expression. We want to be able
112110 // to associate the parent of this expression with the ultimate callee.
@@ -1579,8 +1577,6 @@ static void diagRecursivePropertyAccess(const Expr *E, const DeclContext *DC) {
15791577 cast<VarDecl>(DRE->getDecl ())->isSelfParameter ();
15801578 }
15811579
1582- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
1583-
15841580 MacroWalking getMacroWalkingBehavior () const override {
15851581 return MacroWalking::Expansion;
15861582 }
@@ -2226,8 +2222,6 @@ static void diagnoseImplicitSelfUseInClosure(const Expr *E,
22262222 return parentContext->getInnermostClosureForSelfCapture ();
22272223 }
22282224
2229- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
2230-
22312225 bool shouldRecordClosure (const AbstractClosureExpr *E) {
22322226 // Record all closures in Swift 6 mode.
22332227 if (Ctx.isSwiftVersionAtLeast (6 ))
@@ -4560,8 +4554,6 @@ static void checkStmtConditionTrailingClosure(ASTContext &ctx, const Expr *E) {
45604554 public:
45614555 DiagnoseWalker (ASTContext &ctx) : Ctx(ctx) { }
45624556
4563- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
4564-
45654557 MacroWalking getMacroWalkingBehavior () const override {
45664558 return MacroWalking::Expansion;
45674559 }
@@ -4685,8 +4677,6 @@ class ObjCSelectorWalker : public ASTWalker {
46854677 ObjCSelectorWalker (const DeclContext *dc, Type selectorTy)
46864678 : Ctx(dc->getASTContext ()), DC(dc), SelectorTy(selectorTy) { }
46874679
4688- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
4689-
46904680 MacroWalking getMacroWalkingBehavior () const override {
46914681 return MacroWalking::Expansion;
46924682 }
@@ -5547,8 +5537,6 @@ static void diagnoseUnintendedOptionalBehavior(const Expr *E,
55475537 }
55485538 }
55495539
5550- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
5551-
55525540 MacroWalking getMacroWalkingBehavior () const override {
55535541 return MacroWalking::Expansion;
55545542 }
@@ -5622,8 +5610,6 @@ static void diagnoseDeprecatedWritableKeyPath(const Expr *E,
56225610 }
56235611 }
56245612
5625- bool shouldWalkCaptureInitializerExpressions () override { return true ; }
5626-
56275613 MacroWalking getMacroWalkingBehavior () const override {
56285614 return MacroWalking::Expansion;
56295615 }
0 commit comments