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

136 lines
3.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 18,
"end": 79,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 29,
"end": 39,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 29,
"end": 39,
"ctxt": 0
},
"value": "_arguments",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 18,
"end": 79,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 41,
"end": 79,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 47,
"end": 77,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 51,
"end": 76,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 55,
"end": 76,
"ctxt": 0
},
"params": [],
"body": {
"type": "ArrowFunctionExpression",
"span": {
"start": 61,
"end": 76,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 67,
"end": 76,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}