swc/crates/swc_ecma_parser/tests/tsc/parserEnum7.json
2022-03-22 07:54:08 +00:00

91 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 20,
"ctxt": 0
},
"body": [
{
"type": "TsEnumDeclaration",
"span": {
"start": 0,
"end": 20,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "E",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "1",
"raw": "\"1\""
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "2",
"raw": "\"2\""
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": "3",
"raw": "\"3\""
},
"init": null
}
]
}
],
"interpreter": null
}