Skip to content

Commit 96b2c59

Browse files
[autofix.ci] apply automated fixes
1 parent c7b1ddb commit 96b2c59

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tasks/ast_tools/src/generators/formatter/ast_nodes.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ const FORMATTER_CRATE_PATH: &str = "crates/oxc_formatter";
2020

2121
/// Based on the printing comments algorithm, the last child of these AST nodes don't need to print comments.
2222
/// Without following nodes could lead to only print comments that before the end of the node, which is what we want.
23-
const AST_NODE_WITHOUT_FOLLOWING_NODE_LIST: &[&str] =
24-
&["AssignmentExpression", "FormalParameters", "StaticMemberExpression", "ObjectProperty", "ComputedMemberExpression"];
23+
const AST_NODE_WITHOUT_FOLLOWING_NODE_LIST: &[&str] = &[
24+
"AssignmentExpression",
25+
"FormalParameters",
26+
"StaticMemberExpression",
27+
"ObjectProperty",
28+
"ComputedMemberExpression",
29+
];
2530

2631
const AST_NODE_WITH_FOLLOWING_NODE_LIST: &[&str] = &["Function", "Class"];
2732

0 commit comments

Comments
 (0)