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

352 lines
6.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 261,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 11,
"end": 13,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 14,
"end": 16,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 31,
"end": 33,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": true,
"span": {
"start": 17,
"end": 36,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 37,
"end": 49,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 44,
"end": 46,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 47,
"end": 49,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 65,
"end": 67,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": true,
"span": {
"start": 51,
"end": 70,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 71,
"end": 86,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 81,
"end": 83,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 84,
"end": 86,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 87,
"end": 99,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 94,
"end": 96,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 97,
"end": 99,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 115,
"end": 117,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": true,
"span": {
"start": 101,
"end": 120,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 121,
"end": 133,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 128,
"end": 130,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 131,
"end": 133,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 134,
"end": 149,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 144,
"end": 146,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 147,
"end": 149,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 151,
"end": 163,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 158,
"end": 160,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 161,
"end": 163,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 178,
"end": 180,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": true,
"span": {
"start": 164,
"end": 183,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 246,
"end": 261,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 256,
"end": 258,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 259,
"end": 261,
"ctxt": 0
},
"body": []
}
}
],
"interpreter": null
}