swc/crates/swc_ecma_parser/tests/tsc/parserES5ForOfStatement12.json
2023-03-12 04:50:28 +00:00

112 lines
2.5 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 43,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 16,
"end": 43,
"ctxt": 0
},
"await": false,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 21,
"end": 33,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}