Debian Codegraph @

packages/babel-parser/test/fixtures/flow/enum-declaration/invalid-member-initializer-string-explicit-boolean/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
4 "errors": [
5 "SyntaxError: Enum `E` has type `boolean`, so the initializer of `A` needs to be a boolean literal. (2:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "EnumDeclaration",
15 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
16 "id": {
17 "type": "Identifier",
18 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"E"},
19 "name": "E"
20 },
21 "body": {
22 "type": "EnumBooleanBody",
23 "start":7,"end":33,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":3,"column":1,"index":33}},
24 "hasUnknownMembers": false,
25 "explicitType": true,
26 "members": []
27 }
28 }
29 ],
30 "directives": []
31 }
32 }