Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: unify checks for statement list parents (#8048)
There are currently three types of nodes that can contain a list of statements: * `Program` * `BlockStatement` * `SwitchCase` Several rules have to check for these node types, and sometimes they do it incorrectly (see #8047). This commit puts the node types in a constant in `ast-utils`.
- Loading branch information
1 parent
c596690
commit 329dcdc
Showing
5 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters