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

116 lines
2.3 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": false,
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 37,
"end": 44,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 38,
"end": 43,
"ctxt": 0
},
"value": "async",
"optional": false
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 48,
"end": 54,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
}
}
}
],
"interpreter": null
}