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

69 lines
1.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"body": [
{
"type": "ForInStatement",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"left": {
"type": "AssignmentExpression",
"span": {
"start": 6,
"end": 11,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 6,
"end": 7,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
"right": {
"type": "Identifier",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"value": "b",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 18,
"end": 21,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}