-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ts-estree): fix parsing nested sequence expressions (#286)
- Loading branch information
1 parent
5ada030
commit ecc9631
Showing
11 changed files
with
3,905 additions
and
9 deletions.
There are no files selected for viewing
990 changes: 990 additions & 0 deletions
990
packages/parser/tests/lib/__snapshots__/javascript.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/javascript/commaOperator/comma-operator-conditional.src.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var xx = (xx ? x++ : 4, 10); |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/javascript/commaOperator/comma-operator-multi.src.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var v1 = (1, 2, 3, 4, 5, 6, 7); |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/javascript/commaOperator/comma-operator-nested.src.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var v1 = ((1, 2, 3), 4, 5, (6, 7)); |
4 changes: 4 additions & 0 deletions
4
packages/shared-fixtures/fixtures/javascript/commaOperator/comma-operator-return.src.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function f1() { | ||
var a = 1; | ||
return a, v1, a; | ||
} |
1 change: 1 addition & 0 deletions
1
...ges/shared-fixtures/fixtures/javascript/commaOperator/comma-operator-simple-nested.src.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const foo = (((1, 2))); |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/javascript/commaOperator/comma-operator-simple.src.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const foo = (1); |
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.