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

94 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 26,
"ctxt": 0
},
"body": [
{
"type": "ForInStatement",
"span": {
"start": 1,
"end": 26,
"ctxt": 0
},
"left": {
"type": "VariableDeclaration",
"span": {
"start": 6,
"end": 16,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 20,
"end": 22,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "BlockStatement",
"span": {
"start": 24,
"end": 26,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}