Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield-delegate/output.json

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