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

75 lines
1.5 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 39,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 1,
"end": 39,
"ctxt": 0
},
"declare": true,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 18,
"end": 39,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 23,
"end": 37,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
}
]
}
}
],
"interpreter": null
}