Debian Codegraph @

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

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