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

90 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 18,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 18,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 0,
"end": 18,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 4,
"end": 18,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 5,
"end": 17,
"ctxt": 0
},
"expressions": [
{
"type": "ArrowFunctionExpression",
"span": {
"start": 5,
"end": 14,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 11,
"end": 14,
"ctxt": 0
},
"stmts": []
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
{
"type": "Identifier",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": "a",
"optional": false
}
]
}
}
}
}
],
"interpreter": null
}