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

121 lines
3.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 39,
"end": 72,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 39,
"end": 72,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 43,
"end": 72,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 44,
"end": 72,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 46,
"end": 72,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 52,
"end": 70,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "BinaryExpression",
"span": {
"start": 53,
"end": 60,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 53,
"end": 55,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"right": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 63,
"end": 69,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 65,
"end": 69,
"ctxt": 0
},
"kind": "void"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
}
],
"interpreter": null
}