48 lines
1.6 KiB
JSON
48 lines
1.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
|
|
"errors": [
|
|
"SyntaxError: Can not use 'yield' as identifier inside a generator (1:16)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
|
|
"expression": {
|
|
"type": "FunctionExpression",
|
|
"start":1,"end":29,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":29}},
|
|
"id": null,
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":14,"end":29,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":29}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":16,"end":27,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":27}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":16,"end":26,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":26},"identifierName":"yield"},
|
|
"name": "yield"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |