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

112 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 47,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 16,
"end": 47,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 21,
"end": 37,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 32,
"end": 37,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 41,
"end": 42,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}