Debian Codegraph @

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

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