Debian Codegraph @

packages/babel-parser/test/fixtures/flow/multiple-declarations/declare-function/output.json

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