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

352 lines
6.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 2,
"end": 262,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 2,
"end": 17,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 12,
"end": 14,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 15,
"end": 17,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 32,
"end": 34,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": true,
"span": {
"start": 18,
"end": 37,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 38,
"end": 50,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 45,
"end": 47,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 48,
"end": 50,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 66,
"end": 68,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": true,
"span": {
"start": 52,
"end": 71,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 72,
"end": 87,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 82,
"end": 84,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 85,
"end": 87,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 88,
"end": 100,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 95,
"end": 97,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 98,
"end": 100,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 116,
"end": 118,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": true,
"span": {
"start": 102,
"end": 121,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 122,
"end": 134,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 129,
"end": 131,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 132,
"end": 134,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 135,
"end": 150,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 145,
"end": 147,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 148,
"end": 150,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 152,
"end": 164,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 159,
"end": 161,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 162,
"end": 164,
"ctxt": 0
},
"body": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 179,
"end": 181,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": true,
"span": {
"start": 165,
"end": 184,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 247,
"end": 262,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 257,
"end": 259,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 260,
"end": 262,
"ctxt": 0
},
"body": []
}
}
],
"interpreter": null
}