Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested-2/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
16 "expression": {
17 "type": "ArrowFunctionExpression",
18 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
19 "id": null,
20 "generator": false,
21 "async": true,
22 "params": [
23 {
24 "type": "AssignmentPattern",
25 "start":7,"end":22,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":22,"index":22}},
26 "left": {
27 "type": "ArrayPattern",
28 "start":7,"end":17,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":17,"index":17}},
29 "elements": [
30 {
31 "type": "AssignmentPattern",
32 "start":8,"end":16,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":16,"index":16}},
33 "left": {
34 "type": "Identifier",
35 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
36 "name": "a",
37 "extra": {
38 "parenthesized": true,
39 "parenStart": 8
40 }
41 },
42 "right": {
43 "type": "ArrayExpression",
44 "start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16}},
45 "elements": []
46 }
47 }
48 ]
49 },
50 "right": {
51 "type": "ArrayExpression",
52 "start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
53 "elements": []
54 }
55 }
56 ],
57 "body": {
58 "type": "BlockStatement",
59 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
60 "body": [],
61 "directives": []
62 }
63 }
64 }
65 ],
66 "directives": []
67 }
68 }