Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "errors": [
5 "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:11)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
16 "expression": {
17 "type": "ObjectExpression",
18 "start":1,"end":22,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":22,"index":22}},
19 "properties": [
20 {
21 "type": "ObjectMethod",
22 "start":3,"end":20,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":20,"index":20}},
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": "Identifier",
37 "start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16},"identifierName":"yield"},
38 "name": "yield"
39 }
40 ],
41 "body": {
42 "type": "BlockStatement",
43 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
44 "body": [],
45 "directives": []
46 }
47 }
48 ],
49 "extra": {
50 "parenthesized": true,
51 "parenStart": 0
52 }
53 }
54 }
55 ],
56 "directives": []
57 }
58 }