Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/super-inside-arrow-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
16 "name": "A"
17 },
18 "superClass": {
19 "type": "Identifier",
20 "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"B"},
21 "name": "B"
22 },
23 "body": {
24 "type": "ClassBody",
25 "start":18,"end":46,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":3,"column":1,"index":46}},
26 "body": [
27 {
28 "type": "ClassProperty",
29 "start":22,"end":44,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":24,"index":44}},
30 "static": false,
31 "key": {
32 "type": "Identifier",
33 "start":22,"end":25,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":5,"index":25},"identifierName":"foo"},
34 "name": "foo"
35 },
36 "computed": false,
37 "value": {
38 "type": "ArrowFunctionExpression",
39 "start":28,"end":43,"loc":{"start":{"line":2,"column":8,"index":28},"end":{"line":2,"column":23,"index":43}},
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [],
44 "body": {
45 "type": "CallExpression",
46 "start":34,"end":43,"loc":{"start":{"line":2,"column":14,"index":34},"end":{"line":2,"column":23,"index":43}},
47 "callee": {
48 "type": "MemberExpression",
49 "start":34,"end":41,"loc":{"start":{"line":2,"column":14,"index":34},"end":{"line":2,"column":21,"index":41}},
50 "object": {
51 "type": "Super",
52 "start":34,"end":39,"loc":{"start":{"line":2,"column":14,"index":34},"end":{"line":2,"column":19,"index":39}}
53 },
54 "computed": false,
55 "property": {
56 "type": "Identifier",
57 "start":40,"end":41,"loc":{"start":{"line":2,"column":20,"index":40},"end":{"line":2,"column":21,"index":41},"identifierName":"x"},
58 "name": "x"
59 }
60 },
61 "arguments": []
62 }
63 }
64 }
65 ]
66 }
67 }
68 ],
69 "directives": []
70 }
71 }