mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user