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

81 lines
1.6 KiB
JSON
Raw Normal View History

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