Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"bar"},
16 "name": "bar"
17 },
18 "generator": false,
19 "async": false,
20 "typeParameters": {
21 "type": "TypeParameterDeclaration",
22 "start":12,"end":24,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":24,"index":24}},
23 "params": [
24 {
25 "type": "TypeParameter",
26 "start":13,"end":23,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":23,"index":23}},
27 "name": "T",
28 "variance": null,
29 "bound": {
30 "type": "TypeAnnotation",
31 "start":14,"end":23,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":23,"index":23}},
32 "typeAnnotation": {
33 "type": "NullableTypeAnnotation",
34 "start":16,"end":23,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":23,"index":23}},
35 "typeAnnotation": {
36 "type": "NumberTypeAnnotation",
37 "start":17,"end":23,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":23,"index":23}}
38 }
39 }
40 }
41 }
42 ]
43 },
44 "params": [],
45 "body": {
46 "type": "BlockStatement",
47 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
48 "body": [],
49 "directives": []
50 }
51 }
52 ],
53 "directives": []
54 }
55 }