Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":66}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":66}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":66}},
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":66,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":5,"column":1,"index":66}},
26 "body": [
27 {
28 "type": "ClassMethod",
29 "start":24,"end":64,"loc":{"start":{"line":2,"column":4,"index":24},"end":{"line":4,"column":5,"index":64}},
30 "static": false,
31 "key": {
32 "type": "Identifier",
33 "start":24,"end":35,"loc":{"start":{"line":2,"column":4,"index":24},"end":{"line":2,"column":15,"index":35},"identifierName":"constructor"},
34 "name": "constructor"
35 },
36 "computed": false,
37 "kind": "constructor",
38 "id": null,
39 "generator": false,
40 "async": false,
41 "params": [],
42 "body": {
43 "type": "BlockStatement",
44 "start":37,"end":64,"loc":{"start":{"line":2,"column":17,"index":37},"end":{"line":4,"column":5,"index":64}},
45 "body": [
46 {
47 "type": "ExpressionStatement",
48 "start":47,"end":58,"loc":{"start":{"line":3,"column":8,"index":47},"end":{"line":3,"column":19,"index":58}},
49 "expression": {
50 "type": "OptionalMemberExpression",
51 "start":47,"end":57,"loc":{"start":{"line":3,"column":8,"index":47},"end":{"line":3,"column":18,"index":57}},
52 "object": {
53 "type": "CallExpression",
54 "start":47,"end":54,"loc":{"start":{"line":3,"column":8,"index":47},"end":{"line":3,"column":15,"index":54}},
55 "callee": {
56 "type": "Super",
57 "start":47,"end":52,"loc":{"start":{"line":3,"column":8,"index":47},"end":{"line":3,"column":13,"index":52}}
58 },
59 "arguments": []
60 },
61 "computed": false,
62 "property": {
63 "type": "Identifier",
64 "start":56,"end":57,"loc":{"start":{"line":3,"column":17,"index":56},"end":{"line":3,"column":18,"index":57},"identifierName":"b"},
65 "name": "b"
66 },
67 "optional": true
68 }
69 }
70 ],
71 "directives": []
72 }
73 }
74 ]
75 }
76 }
77 ],
78 "directives": []
79 }
80 }