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

68 lines
1.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 20,
"ctxt": 0
},
"body": [
{
"type": "ForInStatement",
"span": {
"start": 0,
"end": 20,
"ctxt": 0
},
"left": {
"type": "AssignmentExpression",
"span": {
"start": 5,
"end": 10,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"value": 1.0
}
},
"right": {
"type": "Identifier",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "b",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 17,
"end": 20,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}