Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern-member/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: Binding member expression. (1:7)"
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": false,
22 "params": [
23 {
24 "type": "AssignmentPattern",
25 "start":1,"end":22,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":22,"index":22}},
26 "left": {
27 "type": "ObjectPattern",
28 "start":1,"end":17,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":17,"index":17}},
29 "properties": [
30 {
31 "type": "ObjectProperty",
32 "start":3,"end":15,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":15,"index":15}},
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": "MemberExpression",
43 "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}},
44 "object": {
45 "type": "Identifier",
46 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10},"identifierName":"foo"},
47 "name": "foo"
48 },
49 "computed": false,
50 "property": {
51 "type": "Identifier",
52 "start":11,"end":14,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":14,"index":14},"identifierName":"qux"},
53 "name": "qux"
54 },
55 "extra": {
56 "parenthesized": true,
57 "parenStart": 6
58 }
59 }
60 }
61 ]
62 },
63 "right": {
64 "type": "ObjectExpression",
65 "start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
66 "properties": []
67 }
68 }
69 ],
70 "body": {
71 "type": "BlockStatement",
72 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
73 "body": [],
74 "directives": []
75 }
76 }
77 }
78 ],
79 "directives": []
80 }
81 }