swc/crates/swc_ecma_parser/tests/tsc/globalThisGlobalExportAsGlobal.json
2022-02-04 17:08:38 +09:00

84 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 56,
"end": 110,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 56,
"end": 110,
"ctxt": 0
},
"declare": true,
"global": true,
"id": {
"type": "Identifier",
"span": {
"start": 64,
"end": 70,
"ctxt": 0
},
"value": "global",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 71,
"end": 110,
"ctxt": 0
},
"body": [
{
"type": "ExportNamedDeclaration",
"span": {
"start": 77,
"end": 108,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 86,
"end": 106,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 86,
"end": 96,
"ctxt": 0
},
"value": "globalThis",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 100,
"end": 106,
"ctxt": 0
},
"value": "global",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
}
]
}
}
],
"interpreter": null
}