Debian Codegraph @

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

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