Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-rest/output.json

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