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

67 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 24,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1,
"end": 24,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 13,
"end": 24,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 17,
"end": 22,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "NumericLiteral",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"computed": false,
"optional": true,
"params": [],
"typeAnn": null,
"typeParams": null
}
]
}
}
],
"interpreter": null
}