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

85 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 49,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 16,
"end": 49,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 29,
"end": 47,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 29,
"end": 47,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"stmts": []
},
"generator": true,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}