swc/crates/swc_ecma_parser/tests/tsc/classAbstractImportInstantiation.json
Donny/강동윤 3958f1792c
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**

 - Closes #7347.
 - Closes #7487.
2023-06-12 08:02:34 +00:00

175 lines
3.7 KiB
JSON

{
"type": "Module",
"span": {
"start": 1,
"end": 89,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 1,
"end": 60,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 10,
"end": 60,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 16,
"end": 42,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 23,
"end": 42,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": true,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 52,
"end": 57,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "A",
"optional": false
},
"arguments": null,
"typeArguments": null
}
}
]
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 62,
"end": 79,
"ctxt": 0
},
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 69,
"end": 72,
"ctxt": 0
},
"value": "myA",
"optional": false
},
"moduleRef": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"value": "M",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"value": "A",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 81,
"end": 89,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 81,
"end": 88,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 85,
"end": 88,
"ctxt": 0
},
"value": "myA",
"optional": false
},
"arguments": null,
"typeArguments": null
}
}
],
"interpreter": null
}