Debian Codegraph @

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

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