Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-function-parameter/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":14,"end":44,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":44,"index":44}},
24 "body": [
25 {
26 "type": "VariableDeclaration",
27 "start":16,"end":42,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":42,"index":42}},
28 "declarations": [
29 {
30 "type": "VariableDeclarator",
31 "start":20,"end":42,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":42,"index":42}},
32 "id": {
33 "type": "Identifier",
34 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"z"},
35 "name": "z"
36 },
37 "init": {
38 "type": "FunctionExpression",
39 "start":24,"end":42,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":42,"index":42}},
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [
44 {
45 "type": "Identifier",
46 "start":33,"end":38,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":38,"index":38},"identifierName":"yield"},
47 "name": "yield"
48 }
49 ],
50 "body": {
51 "type": "BlockStatement",
52 "start":40,"end":42,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":42,"index":42}},
53 "body": [],
54 "directives": []
55 }
56 }
57 }
58 ],
59 "kind": "var"
60 }
61 ],
62 "directives": []
63 }
64 }
65 ],
66 "directives": []
67 }
68 }