[ASTWalker] NFC: Rename SkipChildren -> SkipNode

This better describes what the action currently
does, and allows us to re-introduce `SkipChildren`
with the correct behavior.
This commit is contained in:
Hamish Knight
2024-02-05 15:27:25 +00:00
parent 94c4d117a1
commit 16cfca4186
54 changed files with 357 additions and 359 deletions

View File

@@ -89,7 +89,7 @@ public:
PreWalkAction walkToDeclPre(Decl *D) override {
auto *VD = dyn_cast<ValueDecl>(D);
if (!VD)
return Action::SkipChildren();
return Action::SkipNode();
if (!VD->isSynthesized()) {
return Action::Continue();
@@ -102,7 +102,7 @@ public:
isa<EnumDecl>(VD) || name == "init(from:)" || name == "encode(to:)";
if (!shouldPrint) {
// Some other synthesized decl that we don't want to print.
return Action::SkipChildren();
return Action::SkipNode();
}
Printer.printNewline();
@@ -122,7 +122,7 @@ public:
}
Printer.printNewline();
Printer << "}";
return Action::SkipChildren();
return Action::SkipNode();
}
PrintOptions Options;
@@ -136,7 +136,7 @@ public:
Printer.printNewline();
D->print(Printer, Options);
return Action::SkipChildren();
return Action::SkipNode();
}
};