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

169 lines
3.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 2,
"end": 207,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 2,
"end": 24,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 6,
"end": 23,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 6,
"end": 15,
"ctxt": 0
},
"value": "namespace",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 15,
"end": 23,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 17,
"end": 23,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 25,
"end": 39,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 29,
"end": 38,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 30,
"end": 38,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 32,
"end": 38,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 41,
"end": 207,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 51,
"end": 60,
"ctxt": 0
},
"value": "container",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 61,
"end": 207,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 67,
"end": 172,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 122,
"end": 123,
"ctxt": 0
},
"value": "n",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 169,
"end": 172,
"ctxt": 0
},
"body": []
}
}
]
}
}
],
"interpreter": null
}