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

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

226 lines
4.5 KiB
JSON

{
"type": "Module",
"span": {
"start": 44,
"end": 229,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"value": "x",
"optional": false
},
"declare": false,
"span": {
"start": 44,
"end": 53,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsExportAssignment",
"span": {
"start": 54,
"end": 65,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 90,
"end": 122,
"ctxt": 0
},
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 97,
"end": 101,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 104,
"end": 121,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 112,
"end": 120,
"ctxt": 0
},
"value": "./foo1",
"raw": "'./foo1'"
}
}
},
{
"type": "TsExportAssignment",
"span": {
"start": 124,
"end": 148,
"ctxt": 0
},
"expression": {
"type": "ObjectExpression",
"span": {
"start": 133,
"end": 148,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 139,
"end": 140,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 142,
"end": 146,
"ctxt": 0
},
"value": "foo1",
"optional": false
}
}
]
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 172,
"end": 203,
"ctxt": 0
},
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 179,
"end": 183,
"ctxt": 0
},
"value": "foo2",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 186,
"end": 203,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 194,
"end": 202,
"ctxt": 0
},
"value": "./foo2",
"raw": "'./foo2'"
}
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 210,
"end": 211,
"ctxt": 0
},
"value": "x",
"optional": false
},
"declare": false,
"span": {
"start": 204,
"end": 229,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "MemberExpression",
"span": {
"start": 220,
"end": 226,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 220,
"end": 224,
"ctxt": 0
},
"value": "foo2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}