Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "EnumDeclaration",
12 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}},
13 "id": {
14 "type": "Identifier",
15 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"E"},
16 "name": "E"
17 },
18 "body": {
19 "type": "EnumNumberBody",
20 "start":7,"end":38,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":4,"column":1,"index":38}},
21 "hasUnknownMembers": false,
22 "explicitType": true,
23 "members": [
24 {
25 "type": "EnumNumberMember",
26 "start":21,"end":26,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":7,"index":26}},
27 "id": {
28 "type": "Identifier",
29 "start":21,"end":22,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":3,"index":22},"identifierName":"A"},
30 "name": "A"
31 },
32 "init": {
33 "type": "NumericLiteral",
34 "start":25,"end":26,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":2,"column":7,"index":26}},
35 "extra": {
36 "rawValue": 1,
37 "raw": "1"
38 },
39 "value": 1
40 }
41 },
42 {
43 "type": "EnumNumberMember",
44 "start":30,"end":35,"loc":{"start":{"line":3,"column":2,"index":30},"end":{"line":3,"column":7,"index":35}},
45 "id": {
46 "type": "Identifier",
47 "start":30,"end":31,"loc":{"start":{"line":3,"column":2,"index":30},"end":{"line":3,"column":3,"index":31},"identifierName":"B"},
48 "name": "B"
49 },
50 "init": {
51 "type": "NumericLiteral",
52 "start":34,"end":35,"loc":{"start":{"line":3,"column":6,"index":34},"end":{"line":3,"column":7,"index":35}},
53 "extra": {
54 "rawValue": 2,
55 "raw": "2"
56 },
57 "value": 2
58 }
59 }
60 ]
61 }
62 }
63 ],
64 "directives": []
65 }
66 }