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

96 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 15,
"end": 42,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 15,
"end": 42,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 20,
"end": 32,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 26,
"end": 32,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 26,
"end": 32,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 39,
"end": 42,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}