Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
13 "expression": {
14 "type": "ObjectExpression",
15 "start":1,"end":25,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":25,"index":25}},
16 "properties": [
17 {
18 "type": "ObjectMethod",
19 "start":3,"end":23,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":23,"index":23}},
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":23,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":23,"index":23}},
35 "body": [
36 {
37 "type": "ExpressionStatement",
38 "start":12,"end":21,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":21,"index":21}},
39 "expression": {
40 "type": "YieldExpression",
41 "start":12,"end":20,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":20,"index":20}},
42 "delegate": true,
43 "argument": {
44 "type": "NumericLiteral",
45 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}},
46 "extra": {
47 "rawValue": 3,
48 "raw": "3"
49 },
50 "value": 3
51 }
52 }
53 }
54 ],
55 "directives": []
56 }
57 }
58 ],
59 "extra": {
60 "parenthesized": true,
61 "parenStart": 0
62 }
63 }
64 }
65 ],
66 "directives": []
67 }
68 }