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

100 lines
2.1 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 17,
"end": 56,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 17,
"end": 31,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 21,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 21,
"end": 30,
"ctxt": 0
},
"value": "arguments",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 32,
"end": 56,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 36,
"end": 55,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 40,
"end": 55,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 46,
"end": 55,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
],
"interpreter": null
}