swc/crates/swc_ecma_parser/tests/tsc/override15.json
2022-02-04 17:08:38 +09:00

167 lines
3.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 32,
"end": 123,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 32,
"end": 66,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 47,
"end": 63,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 47,
"end": 58,
"ctxt": 0
},
"value": "doSomething",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 47,
"end": 63,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 61,
"end": 63,
"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": 76,
"end": 77,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 70,
"end": 123,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 95,
"end": 120,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 104,
"end": 115,
"ctxt": 0
},
"value": "doSomethang",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 95,
"end": 120,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 118,
"end": 120,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": true
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 86,
"end": 87,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}