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

101 lines
2.2 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 57,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": true,
"span": {
"start": 15,
"end": 57,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 37,
"end": 54,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 41,
"end": 44,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 42,
"end": 43,
"ctxt": 0
},
"value": "e",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 37,
"end": 54,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 46,
"end": 54,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 48,
"end": 54,
"ctxt": 0
},
"kind": "number"
}
}
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}