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

101 lines
2.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 37,
"end": 95,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 37,
"end": 95,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 49,
"end": 95,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 55,
"end": 93,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "MemberExpression",
"span": {
"start": 56,
"end": 81,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 56,
"end": 62,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 63,
"end": 81,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 84,
"end": 92,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 86,
"end": 92,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
],
"interpreter": null
}