Debian Codegraph @

tests/fixtures/ecma-version/6/generators/yield-without-value.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 26
11 }
12 },
13 "range": [
14 0,
15 26
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 26
28 }
29 },
30 "range": [
31 0,
32 26
33 ],
34 "expression": {
35 "type": "FunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 1
40 },
41 "end": {
42 "line": 1,
43 "column": 24
44 }
45 },
46 "range": [
47 1,
48 24
49 ],
50 "id": null,
51 "generator": true,
52 "expression": false,
53 "params": [],
54 "body": {
55 "type": "BlockStatement",
56 "loc": {
57 "start": {
58 "line": 1,
59 "column": 14
60 },
61 "end": {
62 "line": 1,
63 "column": 24
64 }
65 },
66 "range": [
67 14,
68 24
69 ],
70 "body": [
71 {
72 "type": "ExpressionStatement",
73 "loc": {
74 "start": {
75 "line": 1,
76 "column": 16
77 },
78 "end": {
79 "line": 1,
80 "column": 22
81 }
82 },
83 "range": [
84 16,
85 22
86 ],
87 "expression": {
88 "type": "YieldExpression",
89 "loc": {
90 "start": {
91 "line": 1,
92 "column": 16
93 },
94 "end": {
95 "line": 1,
96 "column": 21
97 }
98 },
99 "range": [
100 16,
101 21
102 ],
103 "delegate": false,
104 "argument": null
105 }
106 }
107 ]
108 }
109 }
110 }
111 ],
112 "sourceType": "script",
113 "tokens": [
114 {
115 "type": "Punctuator",
116 "value": "(",
117 "loc": {
118 "start": {
119 "line": 1,
120 "column": 0
121 },
122 "end": {
123 "line": 1,
124 "column": 1
125 }
126 },
127 "range": [
128 0,
129 1
130 ]
131 },
132 {
133 "type": "Keyword",
134 "value": "function",
135 "loc": {
136 "start": {
137 "line": 1,
138 "column": 1
139 },
140 "end": {
141 "line": 1,
142 "column": 9
143 }
144 },
145 "range": [
146 1,
147 9
148 ]
149 },
150 {
151 "type": "Punctuator",
152 "value": "*",
153 "loc": {
154 "start": {
155 "line": 1,
156 "column": 9
157 },
158 "end": {
159 "line": 1,
160 "column": 10
161 }
162 },
163 "range": [
164 9,
165 10
166 ]
167 },
168 {
169 "type": "Punctuator",
170 "value": "(",
171 "loc": {
172 "start": {
173 "line": 1,
174 "column": 11
175 },
176 "end": {
177 "line": 1,
178 "column": 12
179 }
180 },
181 "range": [
182 11,
183 12
184 ]
185 },
186 {
187 "type": "Punctuator",
188 "value": ")",
189 "loc": {
190 "start": {
191 "line": 1,
192 "column": 12
193 },
194 "end": {
195 "line": 1,
196 "column": 13
197 }
198 },
199 "range": [
200 12,
201 13
202 ]
203 },
204 {
205 "type": "Punctuator",
206 "value": "{",
207 "loc": {
208 "start": {
209 "line": 1,
210 "column": 14
211 },
212 "end": {
213 "line": 1,
214 "column": 15
215 }
216 },
217 "range": [
218 14,
219 15
220 ]
221 },
222 {
223 "type": "Keyword",
224 "value": "yield",
225 "loc": {
226 "start": {
227 "line": 1,
228 "column": 16
229 },
230 "end": {
231 "line": 1,
232 "column": 21
233 }
234 },
235 "range": [
236 16,
237 21
238 ]
239 },
240 {
241 "type": "Punctuator",
242 "value": ";",
243 "loc": {
244 "start": {
245 "line": 1,
246 "column": 21
247 },
248 "end": {
249 "line": 1,
250 "column": 22
251 }
252 },
253 "range": [
254 21,
255 22
256 ]
257 },
258 {
259 "type": "Punctuator",
260 "value": "}",
261 "loc": {
262 "start": {
263 "line": 1,
264 "column": 23
265 },
266 "end": {
267 "line": 1,
268 "column": 24
269 }
270 },
271 "range": [
272 23,
273 24
274 ]
275 },
276 {
277 "type": "Punctuator",
278 "value": ")",
279 "loc": {
280 "start": {
281 "line": 1,
282 "column": 24
283 },
284 "end": {
285 "line": 1,
286 "column": 25
287 }
288 },
289 "range": [
290 24,
291 25
292 ]
293 },
294 {
295 "type": "Punctuator",
296 "value": ";",
297 "loc": {
298 "start": {
299 "line": 1,
300 "column": 25
301 },
302 "end": {
303 "line": 1,
304 "column": 26
305 }
306 },
307 "range": [
308 25,
309 26
310 ]
311 }
312 ]
313 };