Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/function-name-generator-expression/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
4 "errors": [
5 "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:11)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
16 "expression": {
17 "type": "UnaryExpression",
18 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
19 "operator": "+",
20 "prefix": true,
21 "argument": {
22 "type": "FunctionExpression",
23 "start":1,"end":21,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":21,"index":21}},
24 "id": {
25 "type": "Identifier",
26 "start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16},"identifierName":"yield"},
27 "name": "yield"
28 },
29 "generator": true,
30 "async": false,
31 "params": [],
32 "body": {
33 "type": "BlockStatement",
34 "start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
35 "body": [],
36 "directives": []
37 }
38 }
39 }
40 }
41 ],
42 "directives": []
43 }
44 }