swc/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5.json
2022-03-22 07:54:08 +00:00

2052 lines
53 KiB
JSON

{
"type": "Script",
"span": {
"start": 1002,
"end": 2084,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1002,
"end": 1032,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1006,
"end": 1031,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1006,
"end": 1014,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1007,
"end": 1009,
"ctxt": 0
},
"value": "a0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1011,
"end": 1013,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1014,
"end": 1019,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1016,
"end": 1019,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1022,
"end": 1031,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1033,
"end": 1075,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1037,
"end": 1074,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1037,
"end": 1057,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1038,
"end": 1048,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1038,
"end": 1040,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 1043,
"end": 1048,
"ctxt": 0
},
"value": false
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 1050,
"end": 1056,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1050,
"end": 1052,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1055,
"end": 1056,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1057,
"end": 1062,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1059,
"end": 1062,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1065,
"end": 1074,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1419,
"end": 1448,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1423,
"end": 1447,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1423,
"end": 1435,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1424,
"end": 1426,
"ctxt": 0
},
"value": "b0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1428,
"end": 1430,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1432,
"end": 1434,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1438,
"end": 1447,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1439,
"end": 1440,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1442,
"end": 1443,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1445,
"end": 1446,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1449,
"end": 1511,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1453,
"end": 1510,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1453,
"end": 1465,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1454,
"end": 1456,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1458,
"end": 1460,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1462,
"end": 1464,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1465,
"end": 1491,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1467,
"end": 1491,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1468,
"end": 1474,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1468,
"end": 1474,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1476,
"end": 1482,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1476,
"end": 1482,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1484,
"end": 1490,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1484,
"end": 1490,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1494,
"end": 1510,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1495,
"end": 1496,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1498,
"end": 1499,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1501,
"end": 1509,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1522,
"end": 1525,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1513,
"end": 1553,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1528,
"end": 1553,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1534,
"end": 1551,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 1541,
"end": 1550,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1542,
"end": 1543,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1545,
"end": 1546,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1548,
"end": 1549,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 1555,
"end": 1576,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1559,
"end": 1575,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1559,
"end": 1567,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1560,
"end": 1562,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1564,
"end": 1566,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1570,
"end": 1575,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1570,
"end": 1573,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1577,
"end": 1597,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1581,
"end": 1596,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1581,
"end": 1588,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1582,
"end": 1587,
"ctxt": 0
},
"rest": {
"start": 1582,
"end": 1585,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1585,
"end": 1587,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1591,
"end": 1596,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1591,
"end": 1594,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1717,
"end": 1735,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1721,
"end": 1735,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1721,
"end": 1725,
"ctxt": 0
},
"value": "temp",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1728,
"end": 1735,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1729,
"end": 1730,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1731,
"end": 1732,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1733,
"end": 1734,
"ctxt": 0
},
"value": 3.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1736,
"end": 1761,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1740,
"end": 1760,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1740,
"end": 1748,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1741,
"end": 1743,
"ctxt": 0
},
"value": "c0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1745,
"end": 1747,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1751,
"end": 1760,
"ctxt": 0
},
"elements": [
{
"spread": {
"start": 1752,
"end": 1755,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1755,
"end": 1759,
"ctxt": 0
},
"value": "temp",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1762,
"end": 1776,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1766,
"end": 1775,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1766,
"end": 1770,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1767,
"end": 1769,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1773,
"end": 1775,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1777,
"end": 1820,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1781,
"end": 1820,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1781,
"end": 1801,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1782,
"end": 1788,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1783,
"end": 1787,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1784,
"end": 1786,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "ArrayPattern",
"span": {
"start": 1790,
"end": 1800,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1791,
"end": 1799,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1792,
"end": 1798,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1793,
"end": 1797,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1794,
"end": 1796,
"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": 1804,
"end": 1820,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1805,
"end": 1809,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1806,
"end": 1808,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1811,
"end": 1819,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1812,
"end": 1818,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1813,
"end": 1817,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1814,
"end": 1816,
"ctxt": 0
},
"elements": []
}
}
]
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1821,
"end": 1878,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1825,
"end": 1877,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1825,
"end": 1835,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1826,
"end": 1830,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1827,
"end": 1829,
"ctxt": 0
},
"value": "c5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1832,
"end": 1834,
"ctxt": 0
},
"value": "c6",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1835,
"end": 1863,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1837,
"end": 1863,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1838,
"end": 1853,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 1838,
"end": 1853,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1839,
"end": 1852,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 1839,
"end": 1852,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 1839,
"end": 1845,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1846,
"end": 1852,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1855,
"end": 1862,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1855,
"end": 1862,
"ctxt": 0
},
"kind": "boolean"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1866,
"end": 1877,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1867,
"end": 1870,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1868,
"end": 1869,
"ctxt": 0
},
"value": 1.0
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1872,
"end": 1876,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1879,
"end": 1902,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1883,
"end": 1901,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1883,
"end": 1889,
"ctxt": 0
},
"elements": [
null,
{
"type": "Identifier",
"span": {
"start": 1886,
"end": 1888,
"ctxt": 0
},
"value": "c7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1892,
"end": 1901,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1893,
"end": 1894,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1896,
"end": 1897,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1899,
"end": 1900,
"ctxt": 0
},
"value": 3.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1903,
"end": 1931,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1907,
"end": 1930,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1907,
"end": 1915,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1912,
"end": 1914,
"ctxt": 0
},
"value": "c8",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1918,
"end": 1930,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1919,
"end": 1920,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1922,
"end": 1923,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1925,
"end": 1926,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1928,
"end": 1929,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1932,
"end": 1960,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1936,
"end": 1959,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1936,
"end": 1944,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1941,
"end": 1943,
"ctxt": 0
},
"value": "c9",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1947,
"end": 1959,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1948,
"end": 1949,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1951,
"end": 1952,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1954,
"end": 1955,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1957,
"end": 1958,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1961,
"end": 2001,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1965,
"end": 2000,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1965,
"end": 1976,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "RestElement",
"span": {
"start": 1969,
"end": 1975,
"ctxt": 0
},
"rest": {
"start": 1969,
"end": 1972,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1972,
"end": 1975,
"ctxt": 0
},
"value": "c10",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1979,
"end": 2000,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1980,
"end": 1981,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1983,
"end": 1984,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1986,
"end": 1987,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1989,
"end": 1990,
"ctxt": 0
},
"value": 4.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1992,
"end": 1999,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2002,
"end": 2044,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2006,
"end": 2043,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2006,
"end": 2024,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2007,
"end": 2010,
"ctxt": 0
},
"value": "c11",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2012,
"end": 2015,
"ctxt": 0
},
"value": "c12",
"optional": false,
"typeAnnotation": null
},
{
"type": "RestElement",
"span": {
"start": 2017,
"end": 2023,
"ctxt": 0
},
"rest": {
"start": 2017,
"end": 2020,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2020,
"end": 2023,
"ctxt": 0
},
"value": "c13",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2027,
"end": 2043,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2028,
"end": 2029,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2031,
"end": 2032,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2034,
"end": 2042,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2045,
"end": 2084,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2049,
"end": 2083,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2049,
"end": 2064,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2050,
"end": 2053,
"ctxt": 0
},
"value": "c14",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2055,
"end": 2058,
"ctxt": 0
},
"value": "c15",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2060,
"end": 2063,
"ctxt": 0
},
"value": "c16",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2067,
"end": 2083,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2068,
"end": 2069,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2071,
"end": 2072,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2074,
"end": 2082,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}