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

102 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 36,
"end": 92,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 36,
"end": 92,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 46,
"end": 47,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 48,
"end": 92,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 54,
"end": 90,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "MemberExpression",
"span": {
"start": 55,
"end": 80,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 62,
"end": 80,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
},
"computed": true,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 81,
"end": 89,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 83,
"end": 89,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
],
"interpreter": null
}