forked from decaffeinate/decaffeinate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrap postfix statements in parens when followed by a semicolon
Fixes decaffeinate#748 `a if b; c` is a conditional followed by a statement, but `if b then a; c` has `a; c` as the conditional body. To avoid this, we can always wrap these types of statements in parens if there's a semicolon after them.
- Loading branch information
1 parent
e50d0c7
commit 20a6a2f
Showing
4 changed files
with
34 additions
and
2 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