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

100 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 85,
"ctxt": 0
},
"body": [
{
"type": "TsEnumDeclaration",
"span": {
"start": 16,
"end": 85,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"value": "E",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 59,
"end": 69,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 59,
"end": 62,
"ctxt": 0
},
"value": "",
"optional": false
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 65,
"end": 69,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"span": {
"start": 65,
"end": 67,
"ctxt": 0
},
"value": "id",
"optional": false
}
}
},
{
"type": "TsEnumMember",
"span": {
"start": 75,
"end": 83,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 75,
"end": 79,
"ctxt": 0
},
"value": "",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
],
"interpreter": null
}