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

168 lines
4.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 103,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 17,
"end": 103,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 30,
"end": 103,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 36,
"end": 56,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 40,
"end": 55,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 40,
"end": 50,
"ctxt": 0
},
"value": "_arguments",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 53,
"end": 55,
"ctxt": 0
},
"value": 10.0
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 61,
"end": 101,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 65,
"end": 100,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 69,
"end": 100,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 70,
"end": 79,
"ctxt": 0
},
"value": "arguments",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "ArrowFunctionExpression",
"span": {
"start": 84,
"end": 100,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 90,
"end": 100,
"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
}