Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into infer-extends
- Loading branch information
Showing
10 changed files
with
90 additions
and
13 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
7 changes: 7 additions & 0 deletions
7
packages/babel-generator/test/fixtures/parentheses/identifier-lhs/input.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,7 @@ | ||
var f, g, h; | ||
(f) = function () {}; | ||
(f) = class {}; | ||
g = function () {}; | ||
g = class {}; | ||
(h) = function noParen() {}; | ||
(h) = class noParen {} |
13 changes: 13 additions & 0 deletions
13
packages/babel-generator/test/fixtures/parentheses/identifier-lhs/output.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,13 @@ | ||
var f, g, h; | ||
|
||
(f) = function () {}; | ||
|
||
(f) = class {}; | ||
|
||
g = function () {}; | ||
|
||
g = class {}; | ||
|
||
h = function noParen() {}; | ||
|
||
h = class noParen {}; |
1 change: 1 addition & 0 deletions
1
packages/babel-generator/test/fixtures/parentheses/unary-postfix/input.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 @@ | ||
(function () { return {x: 24} }()).x++; |
5 changes: 5 additions & 0 deletions
5
packages/babel-generator/test/fixtures/parentheses/unary-postfix/output.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,5 @@ | ||
(function () { | ||
return { | ||
x: 24 | ||
}; | ||
})().x++; |
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
12 changes: 12 additions & 0 deletions
12
...ansform-react-constant-elements/test/fixtures/constant-elements/regression-14363/input.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,12 @@ | ||
function RoutesComponent() { | ||
return ( | ||
<Routes> | ||
{(c) => { | ||
{ | ||
const Component = c; | ||
return <Component />; | ||
} | ||
}} | ||
</Routes> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
...nsform-react-constant-elements/test/fixtures/constant-elements/regression-14363/output.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,10 @@ | ||
function RoutesComponent() { | ||
return <Routes> | ||
{c => { | ||
{ | ||
const Component = c; | ||
return <Component />; | ||
} | ||
}} | ||
</Routes>; | ||
} |
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