swc/crates/swc_ecma_parser/tests/tsc/for-of7.json

104 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 40,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 15,
"end": 17,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"value": "v",
"optional": false
}
},
{
"type": "ForOfStatement",
"span": {
"start": 18,
"end": 40,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 23,
"end": 28,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 32,
"end": 35,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 33,
"end": 34,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 37,
"end": 40,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}