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

81 lines
1.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 22,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 1,
"end": 22,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": "a",
"optional": false
},
"body": {
"type": "TsNamespaceDeclaration",
"span": {
"start": 10,
"end": 22,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"value": "number",
"optional": false
},
"body": {
"type": "TsNamespaceDeclaration",
"span": {
"start": 17,
"end": 22,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": "b",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"body": []
}
}
}
}
],
"interpreter": null
}