Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":53}},
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":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":53}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":53}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":53,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":5,"column":1,"index":53}},
20 "id": {
21 "type": "Identifier",
22 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"a"},
23 "name": "a"
24 },
25 "init": {
26 "type": "ObjectExpression",
27 "start":10,"end":53,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":53}},
28 "properties": [
29 {
30 "type": "ObjectMethod",
31 "start":16,"end":51,"loc":{"start":{"line":2,"column":4,"index":16},"end":{"line":4,"column":5,"index":51}},
32 "method": true,
33 "key": {
34 "type": "Identifier",
35 "start":16,"end":17,"loc":{"start":{"line":2,"column":4,"index":16},"end":{"line":2,"column":5,"index":17},"identifierName":"b"},
36 "name": "b"
37 },
38 "computed": false,
39 "kind": "method",
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [],
44 "body": {
45 "type": "BlockStatement",
46 "start":19,"end":51,"loc":{"start":{"line":2,"column":7,"index":19},"end":{"line":4,"column":5,"index":51}},
47 "body": [
48 {
49 "type": "ReturnStatement",
50 "start":29,"end":45,"loc":{"start":{"line":3,"column":8,"index":29},"end":{"line":3,"column":24,"index":45}},
51 "argument": {
52 "type": "OptionalMemberExpression",
53 "start":36,"end":44,"loc":{"start":{"line":3,"column":15,"index":36},"end":{"line":3,"column":23,"index":44}},
54 "object": {
55 "type": "Super",
56 "start":36,"end":41,"loc":{"start":{"line":3,"column":15,"index":36},"end":{"line":3,"column":20,"index":41}}
57 },
58 "computed": false,
59 "property": {
60 "type": "Identifier",
61 "start":43,"end":44,"loc":{"start":{"line":3,"column":22,"index":43},"end":{"line":3,"column":23,"index":44},"identifierName":"c"},
62 "name": "c"
63 },
64 "optional": true
65 }
66 }
67 ],
68 "directives": []
69 }
70 }
71 ]
72 }
73 }
74 ],
75 "kind": "const"
76 }
77 ],
78 "directives": []
79 }
80 }