swc/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5iterable.json

2084 lines
54 KiB
JSON

{
"type": "Script",
"span": {
"start": 1032,
"end": 2114,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1032,
"end": 1062,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1036,
"end": 1061,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1036,
"end": 1044,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1037,
"end": 1039,
"ctxt": 0
},
"value": "a0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1041,
"end": 1043,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1044,
"end": 1049,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1046,
"end": 1049,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1052,
"end": 1061,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1063,
"end": 1105,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1067,
"end": 1104,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1067,
"end": 1087,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1068,
"end": 1078,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1068,
"end": 1070,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 1073,
"end": 1078,
"ctxt": 0
},
"value": false
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 1080,
"end": 1086,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1080,
"end": 1082,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1085,
"end": 1086,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1087,
"end": 1092,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1089,
"end": 1092,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1095,
"end": 1104,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1449,
"end": 1478,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1453,
"end": 1477,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1453,
"end": 1465,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1454,
"end": 1456,
"ctxt": 0
},
"value": "b0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1458,
"end": 1460,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1462,
"end": 1464,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1468,
"end": 1477,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1469,
"end": 1470,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1472,
"end": 1473,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1475,
"end": 1476,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1479,
"end": 1541,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1483,
"end": 1540,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1483,
"end": 1495,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1484,
"end": 1486,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1488,
"end": 1490,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1492,
"end": 1494,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1495,
"end": 1521,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1497,
"end": 1521,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1498,
"end": 1504,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1498,
"end": 1504,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1506,
"end": 1512,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1506,
"end": 1512,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1514,
"end": 1520,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1514,
"end": 1520,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1524,
"end": 1540,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1525,
"end": 1526,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1528,
"end": 1529,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1531,
"end": 1539,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1552,
"end": 1555,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1543,
"end": 1583,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1558,
"end": 1583,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1564,
"end": 1581,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 1571,
"end": 1580,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1572,
"end": 1573,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1575,
"end": 1576,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1578,
"end": 1579,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 1585,
"end": 1606,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1589,
"end": 1605,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1589,
"end": 1597,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1590,
"end": 1592,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1594,
"end": 1596,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1600,
"end": 1605,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1600,
"end": 1603,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1607,
"end": 1627,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1611,
"end": 1626,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1611,
"end": 1618,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1612,
"end": 1617,
"ctxt": 0
},
"rest": {
"start": 1612,
"end": 1615,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1615,
"end": 1617,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1621,
"end": 1626,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1621,
"end": 1624,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1747,
"end": 1765,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1751,
"end": 1765,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1751,
"end": 1755,
"ctxt": 0
},
"value": "temp",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1758,
"end": 1765,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1759,
"end": 1760,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1761,
"end": 1762,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1763,
"end": 1764,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1766,
"end": 1791,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1770,
"end": 1790,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1770,
"end": 1778,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1771,
"end": 1773,
"ctxt": 0
},
"value": "c0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1775,
"end": 1777,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1781,
"end": 1790,
"ctxt": 0
},
"elements": [
{
"spread": {
"start": 1782,
"end": 1785,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1785,
"end": 1789,
"ctxt": 0
},
"value": "temp",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1792,
"end": 1806,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1796,
"end": 1805,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1796,
"end": 1800,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1797,
"end": 1799,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1803,
"end": 1805,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1807,
"end": 1850,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1811,
"end": 1850,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1811,
"end": 1831,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1812,
"end": 1818,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1813,
"end": 1817,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1814,
"end": 1816,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "ArrayPattern",
"span": {
"start": 1820,
"end": 1830,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1821,
"end": 1829,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1822,
"end": 1828,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1823,
"end": 1827,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1824,
"end": 1826,
"ctxt": 0
},
"value": "c4",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1834,
"end": 1850,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1835,
"end": 1839,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1836,
"end": 1838,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1841,
"end": 1849,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1842,
"end": 1848,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1843,
"end": 1847,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1844,
"end": 1846,
"ctxt": 0
},
"elements": []
}
}
]
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1851,
"end": 1908,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1855,
"end": 1907,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1855,
"end": 1865,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1856,
"end": 1860,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1857,
"end": 1859,
"ctxt": 0
},
"value": "c5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1862,
"end": 1864,
"ctxt": 0
},
"value": "c6",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1865,
"end": 1893,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1867,
"end": 1893,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1868,
"end": 1883,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 1868,
"end": 1883,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1869,
"end": 1882,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 1869,
"end": 1882,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 1869,
"end": 1875,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1876,
"end": 1882,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1885,
"end": 1892,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1885,
"end": 1892,
"ctxt": 0
},
"kind": "boolean"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1896,
"end": 1907,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1897,
"end": 1900,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1898,
"end": 1899,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1902,
"end": 1906,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1909,
"end": 1932,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1913,
"end": 1931,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1913,
"end": 1919,
"ctxt": 0
},
"elements": [
null,
{
"type": "Identifier",
"span": {
"start": 1916,
"end": 1918,
"ctxt": 0
},
"value": "c7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1922,
"end": 1931,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1923,
"end": 1924,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1926,
"end": 1927,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1929,
"end": 1930,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1933,
"end": 1961,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1937,
"end": 1960,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1937,
"end": 1945,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1942,
"end": 1944,
"ctxt": 0
},
"value": "c8",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1948,
"end": 1960,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1949,
"end": 1950,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1952,
"end": 1953,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1955,
"end": 1956,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1958,
"end": 1959,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1962,
"end": 1990,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1966,
"end": 1989,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1966,
"end": 1974,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1971,
"end": 1973,
"ctxt": 0
},
"value": "c9",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1977,
"end": 1989,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1978,
"end": 1979,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1981,
"end": 1982,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1984,
"end": 1985,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1987,
"end": 1988,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1991,
"end": 2031,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1995,
"end": 2030,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1995,
"end": 2006,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "RestElement",
"span": {
"start": 1999,
"end": 2005,
"ctxt": 0
},
"rest": {
"start": 1999,
"end": 2002,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2002,
"end": 2005,
"ctxt": 0
},
"value": "c10",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2009,
"end": 2030,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2010,
"end": 2011,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2013,
"end": 2014,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2016,
"end": 2017,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2019,
"end": 2020,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2022,
"end": 2029,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2032,
"end": 2074,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2036,
"end": 2073,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2036,
"end": 2054,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2037,
"end": 2040,
"ctxt": 0
},
"value": "c11",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2042,
"end": 2045,
"ctxt": 0
},
"value": "c12",
"optional": false,
"typeAnnotation": null
},
{
"type": "RestElement",
"span": {
"start": 2047,
"end": 2053,
"ctxt": 0
},
"rest": {
"start": 2047,
"end": 2050,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2050,
"end": 2053,
"ctxt": 0
},
"value": "c13",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2057,
"end": 2073,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2058,
"end": 2059,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2061,
"end": 2062,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2064,
"end": 2072,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2075,
"end": 2114,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2079,
"end": 2113,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2079,
"end": 2094,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2080,
"end": 2083,
"ctxt": 0
},
"value": "c14",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2085,
"end": 2088,
"ctxt": 0
},
"value": "c15",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2090,
"end": 2093,
"ctxt": 0
},
"value": "c16",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2097,
"end": 2113,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2098,
"end": 2099,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2101,
"end": 2102,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2104,
"end": 2112,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}