Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-in-object-method/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":87}},
4 "errors": [
5 "SyntaxError: 'super' is only allowed in object methods and classes. (4:13)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":87}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":87}},
16 "expression": {
17 "type": "CallExpression",
18 "start":0,"end":86,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":86}},
19 "callee": {
20 "type": "MemberExpression",
21 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
22 "object": {
23 "type": "Identifier",
24 "start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6},"identifierName":"Object"},
25 "name": "Object"
26 },
27 "computed": false,
28 "property": {
29 "type": "Identifier",
30 "start":7,"end":13,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":13,"index":13},"identifierName":"create"},
31 "name": "create"
32 }
33 },
34 "arguments": [
35 {
36 "type": "ObjectExpression",
37 "start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16}},
38 "properties": []
39 },
40 {
41 "type": "ObjectExpression",
42 "start":18,"end":85,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":7,"column":1,"index":85}},
43 "properties": [
44 {
45 "type": "ObjectProperty",
46 "start":22,"end":83,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":6,"column":3,"index":83}},
47 "method": false,
48 "key": {
49 "type": "Identifier",
50 "start":22,"end":25,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":5,"index":25},"identifierName":"foo"},
51 "name": "foo"
52 },
53 "computed": false,
54 "shorthand": false,
55 "value": {
56 "type": "ObjectExpression",
57 "start":27,"end":83,"loc":{"start":{"line":2,"column":7,"index":27},"end":{"line":6,"column":3,"index":83}},
58 "properties": [
59 {
60 "type": "ObjectProperty",
61 "start":33,"end":79,"loc":{"start":{"line":3,"column":4,"index":33},"end":{"line":5,"column":5,"index":79}},
62 "method": false,
63 "key": {
64 "type": "Identifier",
65 "start":33,"end":36,"loc":{"start":{"line":3,"column":4,"index":33},"end":{"line":3,"column":7,"index":36},"identifierName":"get"},
66 "name": "get"
67 },
68 "computed": false,
69 "shorthand": false,
70 "value": {
71 "type": "FunctionExpression",
72 "start":38,"end":79,"loc":{"start":{"line":3,"column":9,"index":38},"end":{"line":5,"column":5,"index":79}},
73 "id": null,
74 "generator": false,
75 "async": false,
76 "params": [],
77 "body": {
78 "type": "BlockStatement",
79 "start":48,"end":79,"loc":{"start":{"line":3,"column":19,"index":48},"end":{"line":5,"column":5,"index":79}},
80 "body": [
81 {
82 "type": "ReturnStatement",
83 "start":56,"end":73,"loc":{"start":{"line":4,"column":6,"index":56},"end":{"line":4,"column":23,"index":73}},
84 "argument": {
85 "type": "MemberExpression",
86 "start":63,"end":72,"loc":{"start":{"line":4,"column":13,"index":63},"end":{"line":4,"column":22,"index":72}},
87 "object": {
88 "type": "Super",
89 "start":63,"end":68,"loc":{"start":{"line":4,"column":13,"index":63},"end":{"line":4,"column":18,"index":68}}
90 },
91 "computed": false,
92 "property": {
93 "type": "Identifier",
94 "start":69,"end":72,"loc":{"start":{"line":4,"column":19,"index":69},"end":{"line":4,"column":22,"index":72},"identifierName":"foo"},
95 "name": "foo"
96 }
97 }
98 }
99 ],
100 "directives": []
101 }
102 }
103 }
104 ]
105 }
106 }
107 ]
108 }
109 ]
110 }
111 }
112 ],
113 "directives": []
114 }
115 }