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

108 lines
2.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 47,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 27,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 20,
"end": 26,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 21,
"end": 26,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ForOfStatement",
"span": {
"start": 28,
"end": 47,
"ctxt": 0
},
"await": null,
"left": {
"type": "UpdateExpression",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"span": {
"start": 33,
"end": 34,
"ctxt": 0
},
"value": "v",
"optional": false
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 40,
"end": 42,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "BlockStatement",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}