Files
Huáng JùnliàngandGitHub 6eb3cdfd69 Fix: improve object rest handling in array pattern (#17281)
* refactor: iterate object rest elements only

* refactor: use unshiftForXStatementBody

* fix: handle object rest in array pattern

* update tsconfig.json

* improve typings

* fix: declare uid identifiers when transforming array pattern within assignment
2025-05-05 14:09:49 -04:00

155 lines
3.5 KiB
JavaScript

const _z = z(),
{} = _z,
y15 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z.x15), _z.x15));
let {
x: {
a: xa,
[d]: f
}
} = complex,
asdf = babelHelpers.objectWithoutProperties(complex.x, ["a", d].map(babelHelpers.toPropertyKey)),
d = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(complex.y), complex.y)),
g = babelHelpers.objectWithoutProperties(complex, ["x"]);
let _z2 = z(),
{} = _z2,
y4 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z2.x4), _z2.x4));
let _z3 = z(),
{
x5: {
w5
}
} = _z3,
y5 = babelHelpers.objectWithoutProperties(_z3.x5, ["w5"]);
let _z4 = z(),
{
x6: {
w6: {
a6
}
}
} = _z4,
y6 = babelHelpers.objectWithoutProperties(_z4.x6.w6, ["a6"]);
let _z5 = z(),
{
x7: {
e7,
r7
},
q7: {
w7: {
a7
}
}
} = _z5,
y7 = babelHelpers.objectWithoutProperties(_z5.q7.w7, ["a7"]);
let _z6 = z(),
{
x8
} = _z6,
y8 = babelHelpers.objectWithoutProperties(_z6, ["x8"]);
let _z7 = z(),
{
x9: {
w9: {
a9
}
},
x10: {
a10
}
} = _z7,
y9 = babelHelpers.objectWithoutProperties(_z7.x9.w9, ["a9"]),
y10 = babelHelpers.objectWithoutProperties(_z7.x10, ["a10"]);
let _z8 = z(),
{
x11: [{
w11
}]
} = _z8,
z11 = babelHelpers.objectWithoutProperties(_z8.x11, ["w11"]);
let _z9 = z(),
{
x12: [{
a12,
b12
}, {
c12
}]
} = _z9,
d12 = babelHelpers.objectWithoutProperties(_z9.x12, ["c12"]);
let _z0 = z(),
{
x13: [, {
c13
}]
} = _z0,
d13 = babelHelpers.objectWithoutProperties(_z0.x13, ["c13"]);
const _z1 = z(),
{
x14: [...{
q14
}]
} = _z1,
y14 = babelHelpers.objectWithoutProperties(_z1.x14, ["q14"]);
const _z10 = z(),
{} = _z10,
y16 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z10.x15), _z10.x15));
const {
x16: []
} = z();
const [...[...y17]] = z();
const [..._ref] = z(),
y18 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref));
const [..._ref2] = z(),
{
a19
} = _ref2,
y19 = babelHelpers.objectWithoutProperties(_ref2, ["a19"]);
const _z11 = z(),
{} = _z11,
y20 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z11.x20), _z11.x20));
const _z12 = z(),
{
x22: {
q22
} = {}
} = _z12,
y22 = babelHelpers.objectWithoutProperties(_z12.x22, ["q22"]);
const [[...y23] = []] = z();
const [_ref3 = []] = z(),
y24 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref3), _ref3));
const {
x25: [...y25] = []
} = z();
const {
x26: [q26, ...y26] = []
} = z();
const {} = {};
const [,, x27] = z();
const _z13 = z(),
{} = _z13,
y28 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z13.x28), _z13.x28));
const _z14 = z(),
{
x29: [,, {
q29
}]
} = _z14,
y29 = babelHelpers.objectWithoutProperties(_z14.x29, ["q29"]);
const [,, _ref4] = z(),
{
y30
} = _ref4,
x30 = babelHelpers.objectWithoutProperties(_ref4, ["y30"]);
const [,, _ref5] = z(),
x31 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref5), _ref5));
const _z15 = z(),
{
x32: {}
} = _z15,
y32 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z15.w32), _z15.w32));
const [,, {}, _ref6] = z(),
q32 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref6), _ref6));
const _z16 = z(),
y33 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_z16), _z16));