Debian Codegraph @

packages/babel-parser/test/fixtures/flow/regression/issue-10675-class/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":8,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":8,"index":8},"identifierName":"of"},
16 "name": "of"
17 },
18 "typeParameters": {
19 "type": "TypeParameterDeclaration",
20 "start":8,"end":11,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":11,"index":11}},
21 "params": [
22 {
23 "type": "TypeParameter",
24 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
25 "name": "T",
26 "variance": null
27 }
28 ]
29 },
30 "superClass": null,
31 "body": {
32 "type": "ClassBody",
33 "start":12,"end":14,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":14,"index":14}},
34 "body": []
35 }
36 }
37 ],
38 "directives": []
39 }
40 }