Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}},
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":62,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":62,"index":62}},
25 "body": [
26 {
27 "type": "DeclareExportDeclaration",
28 "start":23,"end":60,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":60,"index":60}},
29 "declaration": {
30 "type": "UnionTypeAnnotation",
31 "start":46,"end":59,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":59,"index":59}},
32 "types": [
33 {
34 "type": "NumberTypeAnnotation",
35 "start":46,"end":52,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":52,"index":52}}
36 },
37 {
38 "type": "StringTypeAnnotation",
39 "start":53,"end":59,"loc":{"start":{"line":1,"column":53,"index":53},"end":{"line":1,"column":59,"index":59}}
40 }
41 ]
42 },
43 "default": true
44 }
45 ]
46 },
47 "kind": "ES"
48 }
49 ],
50 "directives": []
51 }
52 }