Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-function-expression/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"g"},
16 "name": "g"
17 },
18 "generator": true,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":13,"end":44,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":44,"index":44}},
24 "body": [
25 {
26 "type": "VariableDeclaration",
27 "start":15,"end":42,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":42,"index":42}},
28 "declarations": [
29 {
30 "type": "VariableDeclarator",
31 "start":19,"end":41,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":41,"index":41}},
32 "id": {
33 "type": "Identifier",
34 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20},"identifierName":"y"},
35 "name": "y"
36 },
37 "init": {
38 "type": "FunctionExpression",
39 "start":23,"end":41,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":41,"index":41}},
40 "id": {
41 "type": "Identifier",
42 "start":32,"end":37,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":37,"index":37},"identifierName":"yield"},
43 "name": "yield"
44 },
45 "generator": false,
46 "async": false,
47 "params": [],
48 "body": {
49 "type": "BlockStatement",
50 "start":39,"end":41,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":41,"index":41}},
51 "body": [],
52 "directives": []
53 }
54 }
55 }
56 ],
57 "kind": "var"
58 }
59 ],
60 "directives": []
61 }
62 }
63 ],
64 "directives": []
65 }
66 }