Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-parameter/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:12)"
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": "FunctionExpression",
18 "start":1,"end":20,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":20,"index":20}},
19 "id": null,
20 "generator": true,
21 "async": false,
22 "params": [
23 {
24 "type": "Identifier",
25 "start":12,"end":17,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":17,"index":17},"identifierName":"yield"},
26 "name": "yield"
27 }
28 ],
29 "body": {
30 "type": "BlockStatement",
31 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
32 "body": [],
33 "directives": []
34 },
35 "extra": {
36 "parenthesized": true,
37 "parenStart": 0
38 }
39 }
40 }
41 ],
42 "directives": []
43 }
44 }