Debian Codegraph @

packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-rest/for-x-array-pattern/output.js

raw
1 const _excluded = ["a"],
2 _excluded2 = ["a"],
3 _excluded3 = ["a"];
4 // ForXStatement
5 for (const _ref of []) {
6 const [_ref2] = _ref;
7 const {
8 a
9 } = _ref2,
10 b = babelHelpers.objectWithoutProperties(_ref2, _excluded);
11 }
12 for (var _ref3 of []) {
13 [_ref4] = _ref3;
14 var {
15 a
16 } = _ref4,
17 b = babelHelpers.objectWithoutProperties(_ref4, _excluded2);
18 }
19 async function a() {
20 for await (var _ref5 of []) {
21 [_ref6] = _ref5;
22 var {
23 a
24 } = _ref6,
25 b = babelHelpers.objectWithoutProperties(_ref6, _excluded3);
26 }
27 }
28
29 // skip
30 for ([{
31 a
32 }] in {}) {}
33 for ([{
34 a
35 }] of []) {}
36 async function a() {
37 for await ([{
38 a
39 }] of []) {}
40 }
41 for ([a, ...b] in {}) {}
42 for ([a, ...b] of []) {}
43 async function a() {
44 for await ([a, ...b] of []) {}
45 }