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

102 lines
2.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 39,
"end": 77,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 39,
"end": 77,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 51,
"end": 77,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 57,
"end": 75,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "BinaryExpression",
"span": {
"start": 58,
"end": 65,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"right": {
"type": "StringLiteral",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 68,
"end": 74,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 70,
"end": 74,
"ctxt": 0
},
"kind": "void"
}
},
"typeParams": null
}
]
}
}
],
"interpreter": null
}