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

151 lines
3.1 KiB
JSON

{
"type": "Module",
"span": {
"start": 117,
"end": 245,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 117,
"end": 138,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 130,
"end": 135,
"ctxt": 0
},
"value": "Thing",
"optional": false
},
"declare": false,
"span": {
"start": 124,
"end": 138,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 139,
"end": 165,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 152,
"end": 162,
"ctxt": 0
},
"value": "OtherThing",
"optional": false
},
"declare": false,
"span": {
"start": 146,
"end": 165,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 189,
"end": 245,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 198,
"end": 203,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 198,
"end": 203,
"ctxt": 0
},
"value": "Thing",
"optional": false
},
"exported": null,
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 205,
"end": 226,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 205,
"end": 215,
"ctxt": 0
},
"value": "OtherThing",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 219,
"end": 226,
"ctxt": 0
},
"value": "default",
"optional": false
},
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 234,
"end": 244,
"ctxt": 0
},
"value": "./source",
"raw": "\"./source\""
},
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}