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

2068 lines
54 KiB
JSON

{
"type": "Script",
"span": {
"start": 1019,
"end": 2101,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1019,
"end": 1049,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1023,
"end": 1048,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1023,
"end": 1031,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1024,
"end": 1026,
"ctxt": 0
},
"value": "a0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1028,
"end": 1030,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1031,
"end": 1036,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1033,
"end": 1036,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1039,
"end": 1048,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1050,
"end": 1092,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1054,
"end": 1091,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1054,
"end": 1074,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 1055,
"end": 1065,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1055,
"end": 1057,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 1060,
"end": 1065,
"ctxt": 0
},
"value": false
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 1067,
"end": 1073,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1067,
"end": 1069,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1072,
"end": 1073,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1074,
"end": 1079,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1076,
"end": 1079,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 1082,
"end": 1091,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1436,
"end": 1465,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1440,
"end": 1464,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1440,
"end": 1452,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1441,
"end": 1443,
"ctxt": 0
},
"value": "b0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1445,
"end": 1447,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1449,
"end": 1451,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1455,
"end": 1464,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1456,
"end": 1457,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1459,
"end": 1460,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1462,
"end": 1463,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1466,
"end": 1528,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1470,
"end": 1527,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1470,
"end": 1482,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1471,
"end": 1473,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1475,
"end": 1477,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1479,
"end": 1481,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1482,
"end": 1508,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1484,
"end": 1508,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1485,
"end": 1491,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1485,
"end": 1491,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1493,
"end": 1499,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1493,
"end": 1499,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1501,
"end": 1507,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1501,
"end": 1507,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1511,
"end": 1527,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1512,
"end": 1513,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1515,
"end": 1516,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1518,
"end": 1526,
"ctxt": 0
},
"value": "string",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1539,
"end": 1542,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1530,
"end": 1570,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1545,
"end": 1570,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1551,
"end": 1568,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 1558,
"end": 1567,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1559,
"end": 1560,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1562,
"end": 1563,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1565,
"end": 1566,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 1572,
"end": 1593,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1576,
"end": 1592,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1576,
"end": 1584,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1577,
"end": 1579,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1581,
"end": 1583,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1587,
"end": 1592,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1587,
"end": 1590,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1594,
"end": 1614,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1598,
"end": 1613,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1598,
"end": 1605,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1599,
"end": 1604,
"ctxt": 0
},
"rest": {
"start": 1599,
"end": 1602,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1602,
"end": 1604,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1608,
"end": 1613,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1608,
"end": 1611,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1734,
"end": 1752,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1738,
"end": 1752,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1738,
"end": 1742,
"ctxt": 0
},
"value": "temp",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1745,
"end": 1752,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1746,
"end": 1747,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1748,
"end": 1749,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1750,
"end": 1751,
"ctxt": 0
},
"value": 3.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1753,
"end": 1778,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1757,
"end": 1777,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1757,
"end": 1765,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1758,
"end": 1760,
"ctxt": 0
},
"value": "c0",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1762,
"end": 1764,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1768,
"end": 1777,
"ctxt": 0
},
"elements": [
{
"spread": {
"start": 1769,
"end": 1772,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1772,
"end": 1776,
"ctxt": 0
},
"value": "temp",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1779,
"end": 1793,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1783,
"end": 1792,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1783,
"end": 1787,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1784,
"end": 1786,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1790,
"end": 1792,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1794,
"end": 1837,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1798,
"end": 1837,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1798,
"end": 1818,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1799,
"end": 1805,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1800,
"end": 1804,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1801,
"end": 1803,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "ArrayPattern",
"span": {
"start": 1807,
"end": 1817,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1808,
"end": 1816,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1809,
"end": 1815,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1810,
"end": 1814,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1811,
"end": 1813,
"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": 1821,
"end": 1837,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1822,
"end": 1826,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1823,
"end": 1825,
"ctxt": 0
},
"elements": []
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1828,
"end": 1836,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1829,
"end": 1835,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1830,
"end": 1834,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1831,
"end": 1833,
"ctxt": 0
},
"elements": []
}
}
]
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1838,
"end": 1895,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1842,
"end": 1894,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1842,
"end": 1852,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 1843,
"end": 1847,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1844,
"end": 1846,
"ctxt": 0
},
"value": "c5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1849,
"end": 1851,
"ctxt": 0
},
"value": "c6",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1852,
"end": 1880,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 1854,
"end": 1880,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1855,
"end": 1870,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 1855,
"end": 1870,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1856,
"end": 1869,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 1856,
"end": 1869,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 1856,
"end": 1862,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1863,
"end": 1869,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1872,
"end": 1879,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1872,
"end": 1879,
"ctxt": 0
},
"kind": "boolean"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1883,
"end": 1894,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1884,
"end": 1887,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1885,
"end": 1886,
"ctxt": 0
},
"value": 1.0
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1889,
"end": 1893,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1896,
"end": 1919,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1900,
"end": 1918,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1900,
"end": 1906,
"ctxt": 0
},
"elements": [
null,
{
"type": "Identifier",
"span": {
"start": 1903,
"end": 1905,
"ctxt": 0
},
"value": "c7",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1909,
"end": 1918,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1910,
"end": 1911,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1913,
"end": 1914,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1916,
"end": 1917,
"ctxt": 0
},
"value": 3.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1920,
"end": 1948,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1924,
"end": 1947,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1924,
"end": 1932,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1929,
"end": 1931,
"ctxt": 0
},
"value": "c8",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1935,
"end": 1947,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1936,
"end": 1937,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1939,
"end": 1940,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1942,
"end": 1943,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1945,
"end": 1946,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1949,
"end": 1977,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1953,
"end": 1976,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1953,
"end": 1961,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "Identifier",
"span": {
"start": 1958,
"end": 1960,
"ctxt": 0
},
"value": "c9",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1964,
"end": 1976,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1965,
"end": 1966,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1968,
"end": 1969,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1971,
"end": 1972,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1974,
"end": 1975,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1978,
"end": 2018,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1982,
"end": 2017,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1982,
"end": 1993,
"ctxt": 0
},
"elements": [
null,
null,
null,
{
"type": "RestElement",
"span": {
"start": 1986,
"end": 1992,
"ctxt": 0
},
"rest": {
"start": 1986,
"end": 1989,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1989,
"end": 1992,
"ctxt": 0
},
"value": "c10",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1996,
"end": 2017,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1997,
"end": 1998,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2000,
"end": 2001,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2003,
"end": 2004,
"ctxt": 0
},
"value": 3.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2006,
"end": 2007,
"ctxt": 0
},
"value": 4.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2009,
"end": 2016,
"ctxt": 0
},
"value": "hello",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2019,
"end": 2061,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2023,
"end": 2060,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2023,
"end": 2041,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2024,
"end": 2027,
"ctxt": 0
},
"value": "c11",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2029,
"end": 2032,
"ctxt": 0
},
"value": "c12",
"optional": false,
"typeAnnotation": null
},
{
"type": "RestElement",
"span": {
"start": 2034,
"end": 2040,
"ctxt": 0
},
"rest": {
"start": 2034,
"end": 2037,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2037,
"end": 2040,
"ctxt": 0
},
"value": "c13",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2044,
"end": 2060,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2045,
"end": 2046,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2048,
"end": 2049,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2051,
"end": 2059,
"ctxt": 0
},
"value": "string",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2062,
"end": 2101,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2066,
"end": 2100,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 2066,
"end": 2081,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 2067,
"end": 2070,
"ctxt": 0
},
"value": "c14",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2072,
"end": 2075,
"ctxt": 0
},
"value": "c15",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 2077,
"end": 2080,
"ctxt": 0
},
"value": "c16",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 2084,
"end": 2100,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2085,
"end": 2086,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2088,
"end": 2089,
"ctxt": 0
},
"value": 2.0
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2091,
"end": 2099,
"ctxt": 0
},
"value": "string",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}