Debian Codegraph @

packages/babel-parser/test/fixtures/flow/enum-declaration/export/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":24,"index":42}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":24,"index":42}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExportNamedDeclaration",
12 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
13 "specifiers": [],
14 "source": null,
15 "exportKind": "value",
16 "declaration": {
17 "type": "EnumDeclaration",
18 "start":7,"end":16,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":16,"index":16}},
19 "id": {
20 "type": "Identifier",
21 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"A"},
22 "name": "A"
23 },
24 "body": {
25 "type": "EnumStringBody",
26 "start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16}},
27 "hasUnknownMembers": false,
28 "explicitType": false,
29 "members": []
30 }
31 }
32 },
33 {
34 "type": "ExportDefaultDeclaration",
35 "start":18,"end":42,"loc":{"start":{"line":3,"column":0,"index":18},"end":{"line":3,"column":24,"index":42}},
36 "declaration": {
37 "type": "EnumDeclaration",
38 "start":33,"end":42,"loc":{"start":{"line":3,"column":15,"index":33},"end":{"line":3,"column":24,"index":42}},
39 "id": {
40 "type": "Identifier",
41 "start":38,"end":39,"loc":{"start":{"line":3,"column":20,"index":38},"end":{"line":3,"column":21,"index":39},"identifierName":"B"},
42 "name": "B"
43 },
44 "body": {
45 "type": "EnumStringBody",
46 "start":40,"end":42,"loc":{"start":{"line":3,"column":22,"index":40},"end":{"line":3,"column":24,"index":42}},
47 "hasUnknownMembers": false,
48 "explicitType": false,
49 "members": []
50 }
51 }
52 }
53 ],
54 "directives": []
55 }
56 }