forked from facebook/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that it correctly handles line terminators, whether part of the empty expression, or block comment inside it. this is particularly important for recast or other tools that care about comments inside jsx expressions. recast in particular will error out if there is a loc mismatch between the comment and its corresponding node. see benjamn/recast#175 for more context. the AST for the newly added tests differs only in its JSXEmptyExpression loc.end data when run against the old code: ``` 1058c1058 < end: { line: 1, column: 6 } --- > end: { line: 2, column: 1 } 1194c1194 < end: { line: 1, column: 38 } --- > end: { line: 5, column: 11 } ```
- Loading branch information
Showing
3 changed files
with
152 additions
and
4 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