Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":35}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":35}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "EnumDeclaration",
12 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":35}},
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": "EnumBooleanBody",
20 "start":7,"end":35,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":4,"column":1,"index":35}},
21 "hasUnknownMembers": false,
22 "explicitType": false,
23 "members": [
24 {
25 "type": "EnumBooleanMember",
26 "start":11,"end":19,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":10,"index":19}},
27 "id": {
28 "type": "Identifier",
29 "start":11,"end":12,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":3,"index":12},"identifierName":"A"},
30 "name": "A"
31 },
32 "init": {
33 "type": "BooleanLiteral",
34 "start":15,"end":19,"loc":{"start":{"line":2,"column":6,"index":15},"end":{"line":2,"column":10,"index":19}},
35 "value": true
36 }
37 },
38 {
39 "type": "EnumBooleanMember",
40 "start":23,"end":32,"loc":{"start":{"line":3,"column":2,"index":23},"end":{"line":3,"column":11,"index":32}},
41 "id": {
42 "type": "Identifier",
43 "start":23,"end":24,"loc":{"start":{"line":3,"column":2,"index":23},"end":{"line":3,"column":3,"index":24},"identifierName":"B"},
44 "name": "B"
45 },
46 "init": {
47 "type": "BooleanLiteral",
48 "start":27,"end":32,"loc":{"start":{"line":3,"column":6,"index":27},"end":{"line":3,"column":11,"index":32}},
49 "value": false
50 }
51 }
52 ]
53 }
54 }
55 ],
56 "directives": []
57 }
58 }