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

127 lines
2.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 20,
"end": 63,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 20,
"end": 30,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 24,
"end": 29,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 24,
"end": 29,
"ctxt": 0
},
"value": "async",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
{
"type": "ForInStatement",
"span": {
"start": 31,
"end": 63,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 36,
"end": 41,
"ctxt": 0
},
"value": "async",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 45,
"end": 59,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": 2.0
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 61,
"end": 63,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}