Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Nov 9, 2021
1 parent 56d7501 commit 28a4e22
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/rome_formatter/src/ts/statements/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn format_statements(stmts: AstNodeList<Stmt>, formatter: &Formatter) -> For
stmts.iter().map(|stmt| {
formatter
.format_node(stmt.clone())
.unwrap_or_else(|| formatter.format_raw(stmt.syntax()).trim_start().trim_end())
.unwrap_or_else(|_| formatter.format_raw(stmt.syntax()).trim_start().trim_end())
}),
)
}
8 changes: 4 additions & 4 deletions crates/rslint_parser/test_data/inline/err/for_stmt_err.rast
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ [email protected]
[email protected] "10"
[email protected] ";" " "
[email protected]
UNARY_EXPR@33..37
NAME_REF@33..34
[email protected] "i"
PLUS2@34..37 "++" " "
PRE_UPDATE_EXPRESSION@33..37
PLUS2@33..35 "++"
[email protected]
IDENT@35..37 "i" " "
[email protected]
[email protected] "{"
[email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ [email protected]
[email protected] "foo"
[email protected] "++"
[email protected]
UNARY_EXPR@5..11
POST_UPDATE_EXPRESSION@5..11
[email protected]
"\n" [email protected] "foo"
[email protected] "--"

0 comments on commit 28a4e22

Please sign in to comment.