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

112 lines
2.5 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 40,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 15,
"end": 40,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 20,
"end": 30,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 24,
"end": 30,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 24,
"end": 30,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 37,
"end": 40,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}