swc/crates/swc_ecma_parser/tests/tsc/override_js4.json
2022-02-04 20:17:42 +09:00

167 lines
3.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 102,
"end": 200,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 108,
"end": 109,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 102,
"end": 134,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 116,
"end": 132,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 116,
"end": 127,
"ctxt": 0
},
"value": "doSomething",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 116,
"end": 132,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 130,
"end": 132,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 136,
"end": 200,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 182,
"end": 198,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 182,
"end": 193,
"ctxt": 0
},
"value": "doSomethang",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 182,
"end": 198,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 196,
"end": 198,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}