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

2084 lines
54 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1020,
"end": 2102,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1020,
"end": 1050,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1024,
"end": 1049,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1024,
"end": 1032,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1025,
"end": 1027,
"ctxt": 0
},
"value": "a0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1029,
"end": 1031,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1032,
"end": 1037,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1034,
"end": 1037,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1040,
"end": 1049,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1051,
"end": 1093,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1055,
"end": 1092,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1055,
"end": 1075,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1056,
"end": 1066,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1056,
"end": 1058,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 1061,
"end": 1066,
"ctxt": 0
},
"value": false
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 1068,
"end": 1074,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1068,
"end": 1070,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1073,
"end": 1074,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1075,
"end": 1080,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1077,
"end": 1080,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1083,
"end": 1092,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1437,
"end": 1466,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1441,
"end": 1465,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1441,
"end": 1453,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1442,
"end": 1444,
"ctxt": 0
},
"value": "b0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1446,
"end": 1448,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1450,
"end": 1452,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1456,
"end": 1465,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1457,
"end": 1458,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1460,
"end": 1461,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1463,
"end": 1464,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1467,
"end": 1529,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1471,
"end": 1528,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1471,
"end": 1483,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1472,
"end": 1474,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1476,
"end": 1478,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1480,
"end": 1482,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1483,
"end": 1509,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1485,
"end": 1509,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1486,
"end": 1492,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1486,
"end": 1492,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1494,
"end": 1500,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1494,
"end": 1500,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1502,
"end": 1508,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1502,
"end": 1508,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1512,
"end": 1528,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1513,
"end": 1514,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1516,
"end": 1517,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1519,
"end": 1527,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1540,
"end": 1543,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1531,
"end": 1571,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1546,
"end": 1571,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1552,
"end": 1569,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 1559,
"end": 1568,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1560,
"end": 1561,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1563,
"end": 1564,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1566,
"end": 1567,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 1573,
"end": 1594,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1577,
"end": 1593,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1577,
"end": 1585,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1578,
"end": 1580,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1582,
"end": 1584,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1588,
"end": 1593,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1588,
"end": 1591,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1595,
"end": 1615,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1599,
"end": 1614,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1599,
"end": 1606,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1600,
"end": 1605,
"ctxt": 0
},
"rest": {
"start": 1600,
"end": 1603,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1603,
"end": 1605,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1609,
"end": 1614,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1609,
"end": 1612,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1735,
"end": 1753,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1739,
"end": 1753,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1739,
"end": 1743,
"ctxt": 0
},
"value": "temp",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1746,
"end": 1753,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1747,
"end": 1748,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1749,
"end": 1750,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1751,
"end": 1752,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1754,
"end": 1779,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1758,
"end": 1778,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1758,
"end": 1766,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1759,
"end": 1761,
"ctxt": 0
},
"value": "c0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1763,
"end": 1765,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1769,
"end": 1778,
"ctxt": 0
},
"elements": [
{
"spread": {
"start": 1770,
"end": 1773,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1773,
"end": 1777,
"ctxt": 0
},
"value": "temp",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1780,
"end": 1794,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1784,
"end": 1793,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1784,
"end": 1788,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1785,
"end": 1787,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1791,
"end": 1793,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1795,
"end": 1838,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1799,
"end": 1838,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1799,
"end": 1819,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1800,
"end": 1806,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1801,
"end": 1805,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1802,
"end": 1804,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "ArrayPattern",
"span": {
"start": 1808,
"end": 1818,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1809,
"end": 1817,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1810,
"end": 1816,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1811,
"end": 1815,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1812,
"end": 1814,
"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": 1822,
"end": 1838,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1823,
"end": 1827,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1824,
"end": 1826,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1829,
"end": 1837,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1830,
"end": 1836,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1831,
"end": 1835,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1832,
"end": 1834,
"ctxt": 0
},
"elements": []
}
}
]
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1839,
"end": 1896,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1843,
"end": 1895,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1843,
"end": 1853,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1844,
"end": 1848,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1845,
"end": 1847,
"ctxt": 0
},
"value": "c5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1850,
"end": 1852,
"ctxt": 0
},
"value": "c6",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1853,
"end": 1881,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1855,
"end": 1881,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1856,
"end": 1871,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 1856,
"end": 1871,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1857,
"end": 1870,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 1857,
"end": 1870,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 1857,
"end": 1863,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1864,
"end": 1870,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1873,
"end": 1880,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1873,
"end": 1880,
"ctxt": 0
},
"kind": "boolean"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1884,
"end": 1895,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1885,
"end": 1888,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1886,
"end": 1887,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1890,
"end": 1894,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1897,
"end": 1920,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1901,
"end": 1919,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1901,
"end": 1907,
"ctxt": 0
},
"elements": [
null,
{
"type": "Identifier",
"span": {
"start": 1904,
"end": 1906,
"ctxt": 0
},
"value": "c7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1910,
"end": 1919,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1911,
"end": 1912,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1914,
"end": 1915,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1917,
"end": 1918,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1921,
"end": 1949,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1925,
"end": 1948,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1925,
"end": 1933,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1930,
"end": 1932,
"ctxt": 0
},
"value": "c8",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1936,
"end": 1948,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1937,
"end": 1938,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1940,
"end": 1941,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1943,
"end": 1944,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1946,
"end": 1947,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1950,
"end": 1978,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1954,
"end": 1977,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1954,
"end": 1962,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1959,
"end": 1961,
"ctxt": 0
},
"value": "c9",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1965,
"end": 1977,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1966,
"end": 1967,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1969,
"end": 1970,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1972,
"end": 1973,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1975,
"end": 1976,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1979,
"end": 2019,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1983,
"end": 2018,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1983,
"end": 1994,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "RestElement",
"span": {
"start": 1987,
"end": 1993,
"ctxt": 0
},
"rest": {
"start": 1987,
"end": 1990,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1990,
"end": 1993,
"ctxt": 0
},
"value": "c10",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1997,
"end": 2018,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1998,
"end": 1999,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2001,
"end": 2002,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2004,
"end": 2005,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2007,
"end": 2008,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2010,
"end": 2017,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2020,
"end": 2062,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2024,
"end": 2061,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2024,
"end": 2042,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2025,
"end": 2028,
"ctxt": 0
},
"value": "c11",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2030,
"end": 2033,
"ctxt": 0
},
"value": "c12",
"optional": false,
"typeAnnotation": null
},
{
"type": "RestElement",
"span": {
"start": 2035,
"end": 2041,
"ctxt": 0
},
"rest": {
"start": 2035,
"end": 2038,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2038,
"end": 2041,
"ctxt": 0
},
"value": "c13",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2045,
"end": 2061,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2046,
"end": 2047,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2049,
"end": 2050,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2052,
"end": 2060,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2063,
"end": 2102,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2067,
"end": 2101,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2067,
"end": 2082,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2068,
"end": 2071,
"ctxt": 0
},
"value": "c14",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2073,
"end": 2076,
"ctxt": 0
},
"value": "c15",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2078,
"end": 2081,
"ctxt": 0
},
"value": "c16",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2085,
"end": 2101,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2086,
"end": 2087,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2089,
"end": 2090,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2092,
"end": 2100,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}