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

88 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 29,
"ctxt": 0
},
"body": [
{
"type": "ForInStatement",
"span": {
"start": 1,
"end": 29,
"ctxt": 0
},
"left": {
"type": "VariableDeclaration",
"span": {
"start": 6,
"end": 19,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 10,
"end": 19,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 11,
"end": 19,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 13,
"end": 19,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 26,
"end": 29,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}