Debian Codegraph @

tests/fixtures/ecma-version/6/generators/yield-without-value-in-call.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": 30
11 }
12 },
13 "range": [
14 0,
15 30
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": 30
28 }
29 },
30 "range": [
31 0,
32 30
33 ],
34 "expression": {
35 "type": "FunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 1
40 },
41 "end": {
42 "line": 1,
43 "column": 28
44 }
45 },
46 "range": [
47 1,
48 28
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": 28
64 }
65 },
66 "range": [
67 14,
68 28
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": 26
81 }
82 },
83 "range": [
84 16,
85 26
86 ],
87 "expression": {
88 "type": "CallExpression",
89 "loc": {
90 "start": {
91 "line": 1,
92 "column": 16
93 },
94 "end": {
95 "line": 1,
96 "column": 25
97 }
98 },
99 "range": [
100 16,
101 25
102 ],
103 "callee": {
104 "type": "Identifier",
105 "loc": {
106 "start": {
107 "line": 1,
108 "column": 16
109 },
110 "end": {
111 "line": 1,
112 "column": 18
113 }
114 },
115 "range": [
116 16,
117 18
118 ],
119 "name": "fn"
120 },
121 "arguments": [
122 {
123 "type": "YieldExpression",
124 "loc": {
125 "start": {
126 "line": 1,
127 "column": 19
128 },
129 "end": {
130 "line": 1,
131 "column": 24
132 }
133 },
134 "range": [
135 19,
136 24
137 ],
138 "delegate": false,
139 "argument": null
140 }
141 ]
142 }
143 }
144 ]
145 }
146 }
147 }
148 ],
149 "sourceType": "script",
150 "tokens": [
151 {
152 "type": "Punctuator",
153 "value": "(",
154 "loc": {
155 "start": {
156 "line": 1,
157 "column": 0
158 },
159 "end": {
160 "line": 1,
161 "column": 1
162 }
163 },
164 "range": [
165 0,
166 1
167 ]
168 },
169 {
170 "type": "Keyword",
171 "value": "function",
172 "loc": {
173 "start": {
174 "line": 1,
175 "column": 1
176 },
177 "end": {
178 "line": 1,
179 "column": 9
180 }
181 },
182 "range": [
183 1,
184 9
185 ]
186 },
187 {
188 "type": "Punctuator",
189 "value": "*",
190 "loc": {
191 "start": {
192 "line": 1,
193 "column": 9
194 },
195 "end": {
196 "line": 1,
197 "column": 10
198 }
199 },
200 "range": [
201 9,
202 10
203 ]
204 },
205 {
206 "type": "Punctuator",
207 "value": "(",
208 "loc": {
209 "start": {
210 "line": 1,
211 "column": 11
212 },
213 "end": {
214 "line": 1,
215 "column": 12
216 }
217 },
218 "range": [
219 11,
220 12
221 ]
222 },
223 {
224 "type": "Punctuator",
225 "value": ")",
226 "loc": {
227 "start": {
228 "line": 1,
229 "column": 12
230 },
231 "end": {
232 "line": 1,
233 "column": 13
234 }
235 },
236 "range": [
237 12,
238 13
239 ]
240 },
241 {
242 "type": "Punctuator",
243 "value": "{",
244 "loc": {
245 "start": {
246 "line": 1,
247 "column": 14
248 },
249 "end": {
250 "line": 1,
251 "column": 15
252 }
253 },
254 "range": [
255 14,
256 15
257 ]
258 },
259 {
260 "type": "Identifier",
261 "value": "fn",
262 "loc": {
263 "start": {
264 "line": 1,
265 "column": 16
266 },
267 "end": {
268 "line": 1,
269 "column": 18
270 }
271 },
272 "range": [
273 16,
274 18
275 ]
276 },
277 {
278 "type": "Punctuator",
279 "value": "(",
280 "loc": {
281 "start": {
282 "line": 1,
283 "column": 18
284 },
285 "end": {
286 "line": 1,
287 "column": 19
288 }
289 },
290 "range": [
291 18,
292 19
293 ]
294 },
295 {
296 "type": "Keyword",
297 "value": "yield",
298 "loc": {
299 "start": {
300 "line": 1,
301 "column": 19
302 },
303 "end": {
304 "line": 1,
305 "column": 24
306 }
307 },
308 "range": [
309 19,
310 24
311 ]
312 },
313 {
314 "type": "Punctuator",
315 "value": ")",
316 "loc": {
317 "start": {
318 "line": 1,
319 "column": 24
320 },
321 "end": {
322 "line": 1,
323 "column": 25
324 }
325 },
326 "range": [
327 24,
328 25
329 ]
330 },
331 {
332 "type": "Punctuator",
333 "value": ";",
334 "loc": {
335 "start": {
336 "line": 1,
337 "column": 25
338 },
339 "end": {
340 "line": 1,
341 "column": 26
342 }
343 },
344 "range": [
345 25,
346 26
347 ]
348 },
349 {
350 "type": "Punctuator",
351 "value": "}",
352 "loc": {
353 "start": {
354 "line": 1,
355 "column": 27
356 },
357 "end": {
358 "line": 1,
359 "column": 28
360 }
361 },
362 "range": [
363 27,
364 28
365 ]
366 },
367 {
368 "type": "Punctuator",
369 "value": ")",
370 "loc": {
371 "start": {
372 "line": 1,
373 "column": 28
374 },
375 "end": {
376 "line": 1,
377 "column": 29
378 }
379 },
380 "range": [
381 28,
382 29
383 ]
384 },
385 {
386 "type": "Punctuator",
387 "value": ";",
388 "loc": {
389 "start": {
390 "line": 1,
391 "column": 29
392 },
393 "end": {
394 "line": 1,
395 "column": 30
396 }
397 },
398 "range": [
399 29,
400 30
401 ]
402 }
403 ]
404 };