73 lines
2.8 KiB
JSON
73 lines
2.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":10,"end":12,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":12},"identifierName":"fn"},
|
|
"name": "fn"
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":15,"end":45,"loc":{"start":{"line":1,"column":15},"end":{"line":3,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":19,"end":43,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":26}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":19,"end":42,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":25}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":25,"end":42,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":25}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":26,"end":35,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":18}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":26,"end":27,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":10},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":30,"end":35,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":18},"identifierName":"yield"},
|
|
"name": "yield"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":40,"end":42,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":25}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |