| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":41}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: String enum members need to consistently either all use initializers, or use no initializers, in enum `E`. (2:2)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":41}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "EnumDeclaration", |
| 15 |
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":41}}, |
| 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": "EnumStringBody", |
| 23 |
"start":7,"end":41,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":5,"column":1,"index":41}}, |
| 24 |
"hasUnknownMembers": false, |
| 25 |
"explicitType": true, |
| 26 |
"members": [ |
| 27 |
{ |
| 28 |
"type": "EnumDefaultedMember", |
| 29 |
"start":32,"end":33,"loc":{"start":{"line":3,"column":2,"index":32},"end":{"line":3,"column":3,"index":33}}, |
| 30 |
"id": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":32,"end":33,"loc":{"start":{"line":3,"column":2,"index":32},"end":{"line":3,"column":3,"index":33},"identifierName":"B"}, |
| 33 |
"name": "B" |
| 34 |
} |
| 35 |
}, |
| 36 |
{ |
| 37 |
"type": "EnumDefaultedMember", |
| 38 |
"start":37,"end":38,"loc":{"start":{"line":4,"column":2,"index":37},"end":{"line":4,"column":3,"index":38}}, |
| 39 |
"id": { |
| 40 |
"type": "Identifier", |
| 41 |
"start":37,"end":38,"loc":{"start":{"line":4,"column":2,"index":37},"end":{"line":4,"column":3,"index":38},"identifierName":"C"}, |
| 42 |
"name": "C" |
| 43 |
} |
| 44 |
} |
| 45 |
] |
| 46 |
} |
| 47 |
} |
| 48 |
], |
| 49 |
"directives": [] |
| 50 |
} |
| 51 |
} |