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

167 lines
3.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 108,
"end": 213,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 108,
"end": 142,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 123,
"end": 139,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 123,
"end": 134,
"ctxt": 0
},
"value": "doSomething",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 123,
"end": 139,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 137,
"end": 139,
"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": 152,
"end": 153,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 146,
"end": 213,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 194,
"end": 210,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 194,
"end": 205,
"ctxt": 0
},
"value": "doSomethang",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 194,
"end": 210,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 208,
"end": 210,
"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": 162,
"end": 163,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}