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

107 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 65,
"ctxt": 0
},
"body": [
{
"type": "TsEnumDeclaration",
"span": {
"start": 16,
"end": 65,
"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": 43,
"end": 63,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 46,
"ctxt": 0
},
"value": "",
"optional": false
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 49,
"end": 63,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 49,
"end": 59,
"ctxt": 0
},
"object": {
"type": "NumericLiteral",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"property": {
"type": "Computed",
"span": {
"start": 55,
"end": 59,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 56,
"end": 58,
"ctxt": 0
},
"value": "e2",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
]
}
],
"interpreter": null
}