Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-statements/5/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareFunction",
12 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
13 "id": {
14 "type": "Identifier",
15 "start":17,"end":31,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":31,"index":31},"identifierName":"foo"},
16 "name": "foo",
17 "typeAnnotation": {
18 "type": "TypeAnnotation",
19 "start":20,"end":31,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":31,"index":31}},
20 "typeAnnotation": {
21 "type": "FunctionTypeAnnotation",
22 "start":20,"end":31,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":31,"index":31}},
23 "typeParameters": {
24 "type": "TypeParameterDeclaration",
25 "start":20,"end":23,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":23,"index":23}},
26 "params": [
27 {
28 "type": "TypeParameter",
29 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22}},
30 "name": "T",
31 "variance": null
32 }
33 ]
34 },
35 "params": [],
36 "rest": null,
37 "this": null,
38 "returnType": {
39 "type": "VoidTypeAnnotation",
40 "start":27,"end":31,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":31,"index":31}}
41 }
42 }
43 }
44 },
45 "predicate": null
46 }
47 ],
48 "directives": []
49 }
50 }