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

110 lines
2.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 21,
"end": 56,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 21,
"end": 31,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"value": "async",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
{
"type": "ForOfStatement",
"span": {
"start": 32,
"end": 56,
"ctxt": 0
},
"await": null,
"left": {
"type": "Identifier",
"span": {
"start": 37,
"end": 42,
"ctxt": 0
},
"value": "async",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 46,
"end": 52,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 54,
"end": 56,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}