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

89 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 44,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 16,
"end": 44,
"ctxt": 0
},
"await": false,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 21,
"end": 34,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 25,
"end": 34,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 26,
"end": 34,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 28,
"end": 34,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 41,
"end": 44,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}