Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}},
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":43,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":43,"index":43}},
21 "body": [
22 {
23 "type": "DeclareVariable",
24 "start":19,"end":41,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":41,"index":41}},
25 "id": {
26 "type": "Identifier",
27 "start":31,"end":40,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":40,"index":40},"identifierName":"x"},
28 "name": "x",
29 "typeAnnotation": {
30 "type": "TypeAnnotation",
31 "start":32,"end":40,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":40,"index":40}},
32 "typeAnnotation": {
33 "type": "NumberTypeAnnotation",
34 "start":34,"end":40,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":40,"index":40}}
35 }
36 }
37 }
38 }
39 ]
40 },
41 "kind": "CommonJS"
42 }
43 ],
44 "directives": []
45 }
46 }