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

211 lines
4.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 94,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 0,
"end": 75,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 9,
"end": 75,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 15,
"end": 41,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 22,
"end": 41,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": true,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 46,
"end": 73,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 53,
"end": 73,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "Identifier",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 77,
"end": 85,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 77,
"end": 84,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 81,
"end": 84,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "A",
"optional": false
}
},
"arguments": null,
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 86,
"end": 94,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 86,
"end": 93,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 90,
"end": 93,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"value": "B",
"optional": false
}
},
"arguments": null,
"typeArguments": null
}
}
],
"interpreter": null
}