Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
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 {
22 "type": "Identifier",
23 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"x"},
24 "name": "x"
25 },
26 {
27 "type": "Identifier",
28 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"y"},
29 "name": "y"
30 },
31 {
32 "type": "Identifier",
33 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"z"},
34 "name": "z"
35 }
36 ],
37 "body": {
38 "type": "BlockStatement",
39 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
40 "body": [],
41 "directives": []
42 }
43 }
44 ],
45 "directives": []
46 }
47 }