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

67 lines
1.3 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 23,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 0,
"end": 23,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 12,
"end": 23,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": "B",
"optional": false
},
"computed": false,
"optional": true,
"params": [],
"typeAnn": null,
"typeParams": null
}
]
}
}
],
"interpreter": null
}