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

178 lines
4.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 18,
"end": 103,
"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": 38,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 29,
"end": 38,
"ctxt": 0
},
"value": "arguments",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 18,
"end": 103,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 40,
"end": 103,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 46,
"end": 66,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 50,
"end": 65,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 50,
"end": 60,
"ctxt": 0
},
"value": "_arguments",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 71,
"end": 101,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 75,
"end": 100,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 79,
"end": 100,
"ctxt": 0
},
"params": [],
"body": {
"type": "ArrowFunctionExpression",
"span": {
"start": 85,
"end": 100,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 91,
"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
}