Debian Codegraph @

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