Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-arrow-default/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
4 "errors": [
5 "SyntaxError: Yield expression is not allowed in formal parameters. (1:21)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
16 "id": {
17 "type": "Identifier",
18 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"g"},
19 "name": "g"
20 },
21 "generator": true,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":14,"end":35,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":35,"index":35}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":16,"end":33,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":33,"index":33}},
31 "expression": {
32 "type": "ArrowFunctionExpression",
33 "start":16,"end":33,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":33,"index":33}},
34 "id": null,
35 "generator": false,
36 "async": false,
37 "params": [
38 {
39 "type": "AssignmentPattern",
40 "start":17,"end":26,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":26,"index":26}},
41 "left": {
42 "type": "Identifier",
43 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"x"},
44 "name": "x"
45 },
46 "right": {
47 "type": "YieldExpression",
48 "start":21,"end":26,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":26,"index":26}},
49 "delegate": false,
50 "argument": null
51 }
52 }
53 ],
54 "body": {
55 "type": "BlockStatement",
56 "start":31,"end":33,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":33,"index":33}},
57 "body": [],
58 "directives": []
59 }
60 }
61 }
62 ],
63 "directives": []
64 }
65 }
66 ],
67 "directives": []
68 }
69 }