Debian Codegraph @

packages/babel-parser/test/fixtures/flow/bounded-polymorphism/1/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
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 "typeParameters": {
19 "type": "TypeParameterDeclaration",
20 "start":7,"end":15,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":15,"index":15}},
21 "params": [
22 {
23 "type": "TypeParameter",
24 "start":8,"end":14,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":14,"index":14}},
25 "name": "T",
26 "variance": null,
27 "bound": {
28 "type": "TypeAnnotation",
29 "start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14}},
30 "typeAnnotation": {
31 "type": "GenericTypeAnnotation",
32 "start":11,"end":14,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":14,"index":14}},
33 "typeParameters": null,
34 "id": {
35 "type": "Identifier",
36 "start":11,"end":14,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":14,"index":14},"identifierName":"Foo"},
37 "name": "Foo"
38 }
39 }
40 }
41 }
42 ]
43 },
44 "superClass": null,
45 "body": {
46 "type": "ClassBody",
47 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
48 "body": []
49 }
50 }
51 ],
52 "directives": []
53 }
54 }