Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
4 "errors": [
5 "SyntaxError: Yield expression is not allowed in formal parameters. (1:21)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
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":38,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":38,"index":38}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":16,"end":36,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":36,"index":36}},
31 "expression": {
32 "type": "ArrowFunctionExpression",
33 "start":16,"end":36,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":36,"index":36}},
34 "id": null,
35 "generator": false,
36 "async": false,
37 "params": [
38 {
39 "type": "AssignmentPattern",
40 "start":17,"end":29,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":29,"index":29}},
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":29,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":29,"index":29}},
49 "delegate": false,
50 "argument": {
51 "type": "NumericLiteral",
52 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
53 "extra": {
54 "rawValue": 42,
55 "raw": "42"
56 },
57 "value": 42
58 }
59 }
60 }
61 ],
62 "body": {
63 "type": "BlockStatement",
64 "start":34,"end":36,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":36,"index":36}},
65 "body": [],
66 "directives": []
67 }
68 }
69 }
70 ],
71 "directives": []
72 }
73 }
74 ],
75 "directives": []
76 }
77 }