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

101 lines
2.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 67,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 16,
"end": 67,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 28,
"end": 67,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 34,
"end": 65,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "MemberExpression",
"span": {
"start": 35,
"end": 53,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 35,
"end": 41,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 42,
"end": 53,
"ctxt": 0
},
"value": "unscopables",
"optional": false
}
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 56,
"end": 64,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 58,
"end": 64,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
],
"interpreter": null
}