Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support more node types in generateUidBasedOnNode (#11260)
* Support more node types in generateUidBasedOnNode * More nodes
- Loading branch information
1 parent
b85d9f5
commit 661ffbd
Showing
13 changed files
with
192 additions
and
101 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
4 changes: 2 additions & 2 deletions
4
...ges/babel-plugin-proposal-decorators/test/fixtures/transformation/extends-await/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
4 changes: 2 additions & 2 deletions
4
...ges/babel-plugin-proposal-decorators/test/fixtures/transformation/extends-yield/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
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
14 changes: 7 additions & 7 deletions
14
...ges/babel-plugin-proposal-partial-application/test/fixtures/general/with-spread/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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
"use strict"; | ||
|
||
var _a, _param, _foo, _x, _param2, _bar, _param3, _obj$baz, _obj; | ||
var _a, _b, _foo, _x, _y, _bar, _d, _obj$baz, _obj; | ||
|
||
const q = (_foo = foo, _a = a, _param = [...b], function foo(_argPlaceholder) { | ||
return _foo(_a, ..._param, _argPlaceholder); | ||
const q = (_foo = foo, _a = a, _b = [...b], function foo(_argPlaceholder) { | ||
return _foo(_a, ..._b, _argPlaceholder); | ||
}); | ||
const w = (_bar = bar, _x = x, _param2 = [...y], function bar(_argPlaceholder2, _argPlaceholder3) { | ||
return _bar(1, _x, _argPlaceholder2, ..._param2, _argPlaceholder3, 2); | ||
const w = (_bar = bar, _x = x, _y = [...y], function bar(_argPlaceholder2, _argPlaceholder3) { | ||
return _bar(1, _x, _argPlaceholder2, ..._y, _argPlaceholder3, 2); | ||
}); | ||
const z = (_obj = obj, _obj$baz = _obj.baz, _param3 = [...d], function baz(_argPlaceholder4) { | ||
return _obj$baz.call(_obj, _argPlaceholder4, ..._param3); | ||
const z = (_obj = obj, _obj$baz = _obj.baz, _d = [...d], function baz(_argPlaceholder4) { | ||
return _obj$baz.call(_obj, _argPlaceholder4, ..._d); | ||
}); |
4 changes: 2 additions & 2 deletions
4
packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/bare-function/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var _ref, _ref2; | ||
var _ref, _; | ||
|
||
const abs = Math.abs; | ||
const value = (_ref = (_ref2 = -5.9, abs(_ref2)), Math.floor(_ref)); | ||
const value = (_ref = (_ = -5.9, abs(_)), Math.floor(_ref)); |
4 changes: 2 additions & 2 deletions
4
...ages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/object-literal/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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
var _ref, _ref2, _ref3; | ||
var _ref, _ref2, _; | ||
|
||
function area(rect) { | ||
return rect.width * rect.height; | ||
} | ||
|
||
const result = (_ref = (_ref2 = (_ref3 = -5, Math.abs(_ref3)), { | ||
const result = (_ref = (_ref2 = (_ = -5, Math.abs(_)), { | ||
width: _ref2, | ||
height: _ref2 + 3 | ||
}), area(_ref)); |
6 changes: 3 additions & 3 deletions
6
...ugin-proposal-pipeline-operator/test/fixtures/smart/topic-inside-arrow-function/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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var _ref, _ref2, _ref3, _ref4; | ||
var _ref, _ref2, _ref3, _; | ||
|
||
const result = (_ref = (_ref2 = (_ref3 = (_ref4 = -2.2 // -2.2 | ||
, Math.floor(_ref4) // -3 | ||
const result = (_ref = (_ref2 = (_ref3 = (_ = -2.2 // -2.2 | ||
, Math.floor(_) // -3 | ||
), () => Math.pow(_ref3, 5) // () => -243 | ||
), _ref2() // -243 | ||
), Math.sign(_ref)); // -1 |
4 changes: 2 additions & 2 deletions
4
...ages/babel-plugin-transform-parameters/test/fixtures/parameters/regression-4348/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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
function first() { | ||
var _ref; | ||
var _index; | ||
|
||
var index = 0; | ||
return _ref = index++, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref]; | ||
return _index = index++, _index < 0 || arguments.length <= _index ? undefined : arguments[_index]; | ||
} |
Oops, something went wrong.