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

84 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 57,
"end": 111,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 57,
"end": 111,
"ctxt": 0
},
"declare": true,
"global": true,
"id": {
"type": "Identifier",
"span": {
"start": 65,
"end": 71,
"ctxt": 0
},
"value": "global",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 72,
"end": 111,
"ctxt": 0
},
"body": [
{
"type": "ExportNamedDeclaration",
"span": {
"start": 78,
"end": 109,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 87,
"end": 107,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 87,
"end": 97,
"ctxt": 0
},
"value": "globalThis",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 101,
"end": 107,
"ctxt": 0
},
"value": "global",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
}
]
}
}
],
"interpreter": null
}