Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/yield-star-inside-generator-function-declaration/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14},"identifierName":"test"},
16 "name": "test"
17 },
18 "generator": true,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":18,"end":30,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":30,"index":30}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":20,"end":28,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":28,"index":28}},
28 "expression": {
29 "type": "YieldExpression",
30 "start":20,"end":28,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":28,"index":28}},
31 "delegate": true,
32 "argument": {
33 "type": "Identifier",
34 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28},"identifierName":"v"},
35 "name": "v"
36 }
37 }
38 }
39 ],
40 "directives": []
41 }
42 }
43 ],
44 "directives": []
45 }
46 }