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

104 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 41,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 18,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": "v",
"optional": false
}
},
{
"type": "ForOfStatement",
"span": {
"start": 19,
"end": 41,
"ctxt": 0
},
"await": false,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 24,
"end": 29,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}