swc/crates/swc_ecma_parser/tests/tsc/parserForOfStatement14.json

96 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 40,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 15,
"end": 40,
"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": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 37,
"end": 40,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}