Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
13 "id": {
14 "type": "Identifier",
15 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"A"},
16 "name": "A"
17 },
18 "body": {
19 "type": "BlockStatement",
20 "start":17,"end":63,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":63,"index":63}},
21 "body": [
22 {
23 "type": "DeclareModuleExports",
24 "start":19,"end":61,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":61,"index":61}},
25 "typeAnnotation": {
26 "type": "TypeAnnotation",
27 "start":41,"end":61,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":61,"index":61}},
28 "typeAnnotation": {
29 "type": "ObjectTypeAnnotation",
30 "start":43,"end":61,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":61,"index":61}},
31 "callProperties": [],
32 "properties": [
33 {
34 "type": "ObjectTypeProperty",
35 "start":45,"end":58,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":58,"index":58}},
36 "key": {
37 "type": "Identifier",
38 "start":45,"end":48,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":48,"index":48},"identifierName":"foo"},
39 "name": "foo"
40 },
41 "static": false,
42 "proto": false,
43 "kind": "init",
44 "method": true,
45 "value": {
46 "type": "FunctionTypeAnnotation",
47 "start":45,"end":58,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":58,"index":58}},
48 "params": [],
49 "rest": null,
50 "typeParameters": null,
51 "this": null,
52 "returnType": {
53 "type": "NumberTypeAnnotation",
54 "start":52,"end":58,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":58,"index":58}}
55 }
56 },
57 "optional": false
58 }
59 ],
60 "indexers": [],
61 "internalSlots": [],
62 "exact": false,
63 "inexact": false
64 }
65 }
66 }
67 ]
68 },
69 "kind": "CommonJS"
70 }
71 ],
72 "directives": []
73 }
74 }