Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareFunction",
12 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
13 "id": {
14 "type": "Identifier",
15 "start":17,"end":48,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":48,"index":48},"identifierName":"foo"},
16 "name": "foo",
17 "typeAnnotation": {
18 "type": "TypeAnnotation",
19 "start":20,"end":48,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":48,"index":48}},
20 "typeAnnotation": {
21 "type": "FunctionTypeAnnotation",
22 "start":20,"end":48,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":48,"index":48}},
23 "typeParameters": null,
24 "params": [
25 {
26 "type": "FunctionTypeParam",
27 "start":21,"end":30,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":30,"index":30}},
28 "name": {
29 "type": "Identifier",
30 "start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22},"identifierName":"x"},
31 "name": "x"
32 },
33 "optional": false,
34 "typeAnnotation": {
35 "type": "NumberTypeAnnotation",
36 "start":24,"end":30,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":30,"index":30}}
37 }
38 },
39 {
40 "type": "FunctionTypeParam",
41 "start":32,"end":41,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":41,"index":41}},
42 "name": {
43 "type": "Identifier",
44 "start":32,"end":33,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":33,"index":33},"identifierName":"y"},
45 "name": "y"
46 },
47 "optional": false,
48 "typeAnnotation": {
49 "type": "StringTypeAnnotation",
50 "start":35,"end":41,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":41,"index":41}}
51 }
52 }
53 ],
54 "rest": null,
55 "this": null,
56 "returnType": {
57 "type": "VoidTypeAnnotation",
58 "start":44,"end":48,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":48,"index":48}}
59 }
60 }
61 }
62 },
63 "predicate": null
64 }
65 ],
66 "directives": []
67 }
68 }