swc/crates/swc_ecma_parser/tests/tsc/parserEnum7.json

91 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"body": [
{
"type": "TsEnumDeclaration",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 6,
"end": 7,
"ctxt": 0
},
"value": "E",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"value": "1",
"raw": "\"1\""
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"value": "2",
"raw": "\"2\""
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 18,
"end": 19,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 18,
"end": 19,
"ctxt": 0
},
"value": "3",
"raw": "\"3\""
},
"init": null
}
]
}
],
"interpreter": null
}