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

108 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 15,
"end": 42,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 15,
"end": 42,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 20,
"end": 30,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 24,
"end": 30,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 24,
"end": 30,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 34,
"end": 38,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 35,
"end": 37,
"ctxt": 0
},
"elements": []
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 40,
"end": 42,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}