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

75 lines
1.6 KiB
JSON
Raw Normal View History

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