Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-3/output.json

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