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

75 lines
1.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 2,
"end": 17,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 14,
"end": 17,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
}
}
],
"interpreter": null
}