Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-member-expr/output.json

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