Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator-method/output.json

raw
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: Yield expression is not allowed in formal parameters. (1:15)"
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": "ObjectExpression",
18 "start":1,"end":26,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":26,"index":26}},
19 "properties": [
20 {
21 "type": "ObjectMethod",
22 "start":3,"end":24,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":24,"index":24}},
23 "method": true,
24 "key": {
25 "type": "Identifier",
26 "start":4,"end":10,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":10,"index":10},"identifierName":"method"},
27 "name": "method"
28 },
29 "computed": false,
30 "kind": "method",
31 "id": null,
32 "generator": true,
33 "async": false,
34 "params": [
35 {
36 "type": "AssignmentPattern",
37 "start":11,"end":20,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":20,"index":20}},
38 "left": {
39 "type": "Identifier",
40 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"x"},
41 "name": "x"
42 },
43 "right": {
44 "type": "YieldExpression",
45 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
46 "delegate": false,
47 "argument": null
48 }
49 }
50 ],
51 "body": {
52 "type": "BlockStatement",
53 "start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24}},
54 "body": [],
55 "directives": []
56 }
57 }
58 ],
59 "extra": {
60 "parenthesized": true,
61 "parenStart": 0
62 }
63 }
64 }
65 ],
66 "directives": []
67 }
68 }