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

79 lines
1.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 47,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 1,
"end": 47,
"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": 47,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 16,
"end": 45,
"ctxt": 0
},
"declaration": {
"type": "TsModuleDeclaration",
"span": {
"start": 23,
"end": 45,
"ctxt": 0
},
"declare": true,
"global": false,
"id": {
"type": "StringLiteral",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"value": "M",
"raw": "\"M\""
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 42,
"end": 45,
"ctxt": 0
},
"body": []
}
}
}
]
}
}
],
"interpreter": null
}