Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
13 "id": {
14 "type": "StringLiteral",
15 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
16 "extra": {
17 "rawValue": "foo",
18 "raw": "\"foo\""
19 },
20 "value": "foo"
21 },
22 "body": {
23 "type": "BlockStatement",
24 "start":21,"end":54,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":54,"index":54}},
25 "body": [
26 {
27 "type": "DeclareExportDeclaration",
28 "start":23,"end":52,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":52,"index":52}},
29 "declaration": {
30 "type": "DeclareVariable",
31 "start":38,"end":52,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":52,"index":52}},
32 "id": {
33 "type": "Identifier",
34 "start":42,"end":51,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":51,"index":51},"identifierName":"a"},
35 "name": "a",
36 "typeAnnotation": {
37 "type": "TypeAnnotation",
38 "start":43,"end":51,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":51,"index":51}},
39 "typeAnnotation": {
40 "type": "NumberTypeAnnotation",
41 "start":45,"end":51,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":51,"index":51}}
42 }
43 }
44 }
45 },
46 "default": false
47 }
48 ]
49 },
50 "kind": "ES"
51 }
52 ],
53 "directives": []
54 }
55 }