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

73 lines
1.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 16,
"end": 38,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 16,
"end": 38,
"ctxt": 0
},
"await": false,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 21,
"end": 28,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 35,
"end": 38,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}