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

106 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 45,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 17,
"end": 45,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 29,
"end": 43,
"ctxt": 0
},
"key": {
"type": "StringLiteral",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": "i",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 29,
"end": 43,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}