Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/yield-star-inside-generator-method/output.json

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