Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-export/export-default-function/output.json

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