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

92 lines
2.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 20,
"end": 59,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 20,
"end": 59,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 20,
"end": 58,
"ctxt": 0
},
"expression": {
"type": "ObjectExpression",
"span": {
"start": 21,
"end": 57,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "m",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 24,
"end": 55,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 34,
"end": 55,
"ctxt": 0
},
"stmts": [
{
"type": "ForStatement",
"span": {
"start": 38,
"end": 52,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 47,
"end": 52,
"ctxt": 0
},
"stmts": []
}
}
]
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
]
}
}
}
],
"interpreter": null
}