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

110 lines
2.5 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": "ObjectPattern",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": 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
}