-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parser failures with unnecessary semicolons (#5063)
* Parser failures with semicolons in new class * Fixing handling of unnecessary semicolons in between statements * Fixing handling of unnecessary semicolons after last member of a class * Refactoring, extracting addPossibleEmptyStatementsBeforeClosingBrace * Extra tests * Fixing handling of comments before first statement in block when semicolon is present * leadingSemicolons test case * Improve test * Handling also semicolons in comments * Improvement * Minor, formatting --------- Co-authored-by: Greg Oledzki <[email protected]> Co-authored-by: lingenj <[email protected]>
- Loading branch information
1 parent
0dc4b54
commit 49855ca
Showing
6 changed files
with
251 additions
and
11 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
Oops, something went wrong.
49855ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timtebeek I don't have the rewrite stack built, so I haven't tested this, but it looks like the changes cover a specific case.
Is there a reason to handle semi-colons after all the statements have been processed instead of during the conversion of statements?The cases are handled.49855ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. Any thoughts here @greg-at-moderne ?