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

88 lines
1.8 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 28,
"ctxt": 0
},
"body": [
{
"type": "ForInStatement",
"span": {
"start": 0,
"end": 28,
"ctxt": 0
},
"left": {
"type": "VariableDeclaration",
"span": {
"start": 5,
"end": 18,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 9,
"end": 18,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 10,
"end": 18,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 12,
"end": 18,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"value": "X",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 25,
"end": 28,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}