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

2084 lines
54 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1003,
"end": 2085,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1003,
"end": 1033,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1007,
"end": 1032,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1007,
"end": 1015,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1008,
"end": 1010,
"ctxt": 0
},
"value": "a0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1012,
"end": 1014,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1015,
"end": 1020,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1017,
"end": 1020,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1023,
"end": 1032,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1034,
"end": 1076,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1038,
"end": 1075,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1038,
"end": 1058,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1039,
"end": 1049,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1039,
"end": 1041,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 1044,
"end": 1049,
"ctxt": 0
},
"value": false
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 1051,
"end": 1057,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1051,
"end": 1053,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1056,
"end": 1057,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1058,
"end": 1063,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1060,
"end": 1063,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1066,
"end": 1075,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1420,
"end": 1449,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1424,
"end": 1448,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1424,
"end": 1436,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1425,
"end": 1427,
"ctxt": 0
},
"value": "b0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1429,
"end": 1431,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1433,
"end": 1435,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1439,
"end": 1448,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1440,
"end": 1441,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1443,
"end": 1444,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1446,
"end": 1447,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1450,
"end": 1512,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1454,
"end": 1511,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1454,
"end": 1466,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1455,
"end": 1457,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1459,
"end": 1461,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1463,
"end": 1465,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1466,
"end": 1492,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1468,
"end": 1492,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1469,
"end": 1475,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1469,
"end": 1475,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1477,
"end": 1483,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1477,
"end": 1483,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1485,
"end": 1491,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1485,
"end": 1491,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1495,
"end": 1511,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1496,
"end": 1497,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1499,
"end": 1500,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1502,
"end": 1510,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1523,
"end": 1526,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1514,
"end": 1554,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1529,
"end": 1554,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1535,
"end": 1552,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 1542,
"end": 1551,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1543,
"end": 1544,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1546,
"end": 1547,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1549,
"end": 1550,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 1556,
"end": 1577,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1560,
"end": 1576,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1560,
"end": 1568,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1561,
"end": 1563,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1565,
"end": 1567,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1571,
"end": 1576,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1571,
"end": 1574,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1578,
"end": 1598,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1582,
"end": 1597,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1582,
"end": 1589,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1583,
"end": 1588,
"ctxt": 0
},
"rest": {
"start": 1583,
"end": 1586,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1586,
"end": 1588,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1592,
"end": 1597,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1592,
"end": 1595,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1718,
"end": 1736,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1722,
"end": 1736,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1722,
"end": 1726,
"ctxt": 0
},
"value": "temp",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1729,
"end": 1736,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1730,
"end": 1731,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1732,
"end": 1733,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1734,
"end": 1735,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1737,
"end": 1762,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1741,
"end": 1761,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1741,
"end": 1749,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1742,
"end": 1744,
"ctxt": 0
},
"value": "c0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1746,
"end": 1748,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1752,
"end": 1761,
"ctxt": 0
},
"elements": [
{
"spread": {
"start": 1753,
"end": 1756,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1756,
"end": 1760,
"ctxt": 0
},
"value": "temp",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1763,
"end": 1777,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1767,
"end": 1776,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1767,
"end": 1771,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1768,
"end": 1770,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1774,
"end": 1776,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1778,
"end": 1821,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1782,
"end": 1821,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1782,
"end": 1802,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1783,
"end": 1789,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1784,
"end": 1788,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1785,
"end": 1787,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "ArrayPattern",
"span": {
"start": 1791,
"end": 1801,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1792,
"end": 1800,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1793,
"end": 1799,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1794,
"end": 1798,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1795,
"end": 1797,
"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": 1805,
"end": 1821,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1806,
"end": 1810,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1807,
"end": 1809,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1812,
"end": 1820,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1813,
"end": 1819,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1814,
"end": 1818,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1815,
"end": 1817,
"ctxt": 0
},
"elements": []
}
}
]
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1822,
"end": 1879,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1826,
"end": 1878,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1826,
"end": 1836,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1827,
"end": 1831,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1828,
"end": 1830,
"ctxt": 0
},
"value": "c5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1833,
"end": 1835,
"ctxt": 0
},
"value": "c6",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1836,
"end": 1864,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1838,
"end": 1864,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1839,
"end": 1854,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 1839,
"end": 1854,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1840,
"end": 1853,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 1840,
"end": 1853,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 1840,
"end": 1846,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1847,
"end": 1853,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1856,
"end": 1863,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1856,
"end": 1863,
"ctxt": 0
},
"kind": "boolean"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1867,
"end": 1878,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1868,
"end": 1871,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1869,
"end": 1870,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1873,
"end": 1877,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1880,
"end": 1903,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1884,
"end": 1902,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1884,
"end": 1890,
"ctxt": 0
},
"elements": [
null,
{
"type": "Identifier",
"span": {
"start": 1887,
"end": 1889,
"ctxt": 0
},
"value": "c7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1893,
"end": 1902,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1894,
"end": 1895,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1897,
"end": 1898,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1900,
"end": 1901,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1904,
"end": 1932,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1908,
"end": 1931,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1908,
"end": 1916,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1913,
"end": 1915,
"ctxt": 0
},
"value": "c8",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1919,
"end": 1931,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1920,
"end": 1921,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1923,
"end": 1924,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1926,
"end": 1927,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1929,
"end": 1930,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"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": "c9",
"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": 2002,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1966,
"end": 2001,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1966,
"end": 1977,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "RestElement",
"span": {
"start": 1970,
"end": 1976,
"ctxt": 0
},
"rest": {
"start": 1970,
"end": 1973,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1973,
"end": 1976,
"ctxt": 0
},
"value": "c10",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1980,
"end": 2001,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1981,
"end": 1982,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1984,
"end": 1985,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1987,
"end": 1988,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1990,
"end": 1991,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1993,
"end": 2000,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2003,
"end": 2045,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2007,
"end": 2044,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2007,
"end": 2025,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2008,
"end": 2011,
"ctxt": 0
},
"value": "c11",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2013,
"end": 2016,
"ctxt": 0
},
"value": "c12",
"optional": false,
"typeAnnotation": null
},
{
"type": "RestElement",
"span": {
"start": 2018,
"end": 2024,
"ctxt": 0
},
"rest": {
"start": 2018,
"end": 2021,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2021,
"end": 2024,
"ctxt": 0
},
"value": "c13",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2028,
"end": 2044,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2029,
"end": 2030,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2032,
"end": 2033,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2035,
"end": 2043,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2046,
"end": 2085,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2050,
"end": 2084,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2050,
"end": 2065,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2051,
"end": 2054,
"ctxt": 0
},
"value": "c14",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2056,
"end": 2059,
"ctxt": 0
},
"value": "c15",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2061,
"end": 2064,
"ctxt": 0
},
"value": "c16",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2068,
"end": 2084,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2069,
"end": 2070,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2072,
"end": 2073,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2075,
"end": 2083,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}