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

129 lines
2.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 21,
"end": 64,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 21,
"end": 31,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"value": "async",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
{
"type": "ForInStatement",
"span": {
"start": 32,
"end": 64,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 37,
"end": 42,
"ctxt": 0
},
"value": "async",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 46,
"end": 60,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 48,
"end": 49,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 54,
"end": 55,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 62,
"end": 64,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}