Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property-class/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":50}},
4 "errors": [
5 "SyntaxError: 'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]). (3:15)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":50}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":50}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":7,"end":50,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":5,"column":1,"index":50}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":13,"end":48,"loc":{"start":{"line":2,"column":4,"index":13},"end":{"line":4,"column":5,"index":48}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":13,"end":14,"loc":{"start":{"line":2,"column":4,"index":13},"end":{"line":2,"column":5,"index":14},"identifierName":"b"},
33 "name": "b"
34 },
35 "computed": false,
36 "kind": "method",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":16,"end":48,"loc":{"start":{"line":2,"column":7,"index":16},"end":{"line":4,"column":5,"index":48}},
44 "body": [
45 {
46 "type": "ReturnStatement",
47 "start":26,"end":42,"loc":{"start":{"line":3,"column":8,"index":26},"end":{"line":3,"column":24,"index":42}},
48 "argument": {
49 "type": "OptionalMemberExpression",
50 "start":33,"end":41,"loc":{"start":{"line":3,"column":15,"index":33},"end":{"line":3,"column":23,"index":41}},
51 "object": {
52 "type": "Super",
53 "start":33,"end":38,"loc":{"start":{"line":3,"column":15,"index":33},"end":{"line":3,"column":20,"index":38}}
54 },
55 "computed": false,
56 "property": {
57 "type": "Identifier",
58 "start":40,"end":41,"loc":{"start":{"line":3,"column":22,"index":40},"end":{"line":3,"column":23,"index":41},"identifierName":"b"},
59 "name": "b"
60 },
61 "optional": true
62 }
63 }
64 ],
65 "directives": []
66 }
67 }
68 ]
69 }
70 }
71 ],
72 "directives": []
73 }
74 }