Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.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": "VariableDeclaration",
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 "declarations": [
35 {
36 "type": "VariableDeclarator",
37 "loc": {
38 "start": {
39 "line": 1,
40 "column": 4
41 },
42 "end": {
43 "line": 1,
44 "column": 33
45 }
46 },
47 "range": [
48 4,
49 33
50 ],
51 "id": {
52 "type": "Identifier",
53 "loc": {
54 "start": {
55 "line": 1,
56 "column": 4
57 },
58 "end": {
59 "line": 1,
60 "column": 5
61 }
62 },
63 "range": [
64 4,
65 5
66 ],
67 "name": "x"
68 },
69 "init": {
70 "type": "ObjectExpression",
71 "loc": {
72 "start": {
73 "line": 1,
74 "column": 8
75 },
76 "end": {
77 "line": 1,
78 "column": 33
79 }
80 },
81 "range": [
82 8,
83 33
84 ],
85 "properties": [
86 {
87 "type": "Property",
88 "loc": {
89 "start": {
90 "line": 1,
91 "column": 10
92 },
93 "end": {
94 "line": 1,
95 "column": 31
96 }
97 },
98 "range": [
99 10,
100 31
101 ],
102 "method": true,
103 "shorthand": false,
104 "computed": false,
105 "key": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 1,
110 "column": 11
111 },
112 "end": {
113 "line": 1,
114 "column": 15
115 }
116 },
117 "range": [
118 11,
119 15
120 ],
121 "name": "test"
122 },
123 "kind": "init",
124 "value": {
125 "type": "FunctionExpression",
126 "loc": {
127 "start": {
128 "line": 1,
129 "column": 16
130 },
131 "end": {
132 "line": 1,
133 "column": 31
134 }
135 },
136 "range": [
137 16,
138 31
139 ],
140 "id": null,
141 "generator": true,
142 "expression": false,
143 "params": [],
144 "body": {
145 "type": "BlockStatement",
146 "loc": {
147 "start": {
148 "line": 1,
149 "column": 19
150 },
151 "end": {
152 "line": 1,
153 "column": 31
154 }
155 },
156 "range": [
157 19,
158 31
159 ],
160 "body": [
161 {
162 "type": "ExpressionStatement",
163 "loc": {
164 "start": {
165 "line": 1,
166 "column": 21
167 },
168 "end": {
169 "line": 1,
170 "column": 29
171 }
172 },
173 "range": [
174 21,
175 29
176 ],
177 "expression": {
178 "type": "YieldExpression",
179 "loc": {
180 "start": {
181 "line": 1,
182 "column": 21
183 },
184 "end": {
185 "line": 1,
186 "column": 29
187 }
188 },
189 "range": [
190 21,
191 29
192 ],
193 "delegate": true,
194 "argument": {
195 "type": "Identifier",
196 "loc": {
197 "start": {
198 "line": 1,
199 "column": 28
200 },
201 "end": {
202 "line": 1,
203 "column": 29
204 }
205 },
206 "range": [
207 28,
208 29
209 ],
210 "name": "v"
211 }
212 }
213 }
214 ]
215 }
216 }
217 }
218 ]
219 }
220 }
221 ],
222 "kind": "var"
223 }
224 ],
225 "sourceType": "script",
226 "tokens": [
227 {
228 "type": "Keyword",
229 "value": "var",
230 "loc": {
231 "start": {
232 "line": 1,
233 "column": 0
234 },
235 "end": {
236 "line": 1,
237 "column": 3
238 }
239 },
240 "range": [
241 0,
242 3
243 ]
244 },
245 {
246 "type": "Identifier",
247 "value": "x",
248 "loc": {
249 "start": {
250 "line": 1,
251 "column": 4
252 },
253 "end": {
254 "line": 1,
255 "column": 5
256 }
257 },
258 "range": [
259 4,
260 5
261 ]
262 },
263 {
264 "type": "Punctuator",
265 "value": "=",
266 "loc": {
267 "start": {
268 "line": 1,
269 "column": 6
270 },
271 "end": {
272 "line": 1,
273 "column": 7
274 }
275 },
276 "range": [
277 6,
278 7
279 ]
280 },
281 {
282 "type": "Punctuator",
283 "value": "{",
284 "loc": {
285 "start": {
286 "line": 1,
287 "column": 8
288 },
289 "end": {
290 "line": 1,
291 "column": 9
292 }
293 },
294 "range": [
295 8,
296 9
297 ]
298 },
299 {
300 "type": "Punctuator",
301 "value": "*",
302 "loc": {
303 "start": {
304 "line": 1,
305 "column": 10
306 },
307 "end": {
308 "line": 1,
309 "column": 11
310 }
311 },
312 "range": [
313 10,
314 11
315 ]
316 },
317 {
318 "type": "Identifier",
319 "value": "test",
320 "loc": {
321 "start": {
322 "line": 1,
323 "column": 11
324 },
325 "end": {
326 "line": 1,
327 "column": 15
328 }
329 },
330 "range": [
331 11,
332 15
333 ]
334 },
335 {
336 "type": "Punctuator",
337 "value": "(",
338 "loc": {
339 "start": {
340 "line": 1,
341 "column": 16
342 },
343 "end": {
344 "line": 1,
345 "column": 17
346 }
347 },
348 "range": [
349 16,
350 17
351 ]
352 },
353 {
354 "type": "Punctuator",
355 "value": ")",
356 "loc": {
357 "start": {
358 "line": 1,
359 "column": 17
360 },
361 "end": {
362 "line": 1,
363 "column": 18
364 }
365 },
366 "range": [
367 17,
368 18
369 ]
370 },
371 {
372 "type": "Punctuator",
373 "value": "{",
374 "loc": {
375 "start": {
376 "line": 1,
377 "column": 19
378 },
379 "end": {
380 "line": 1,
381 "column": 20
382 }
383 },
384 "range": [
385 19,
386 20
387 ]
388 },
389 {
390 "type": "Keyword",
391 "value": "yield",
392 "loc": {
393 "start": {
394 "line": 1,
395 "column": 21
396 },
397 "end": {
398 "line": 1,
399 "column": 26
400 }
401 },
402 "range": [
403 21,
404 26
405 ]
406 },
407 {
408 "type": "Punctuator",
409 "value": "*",
410 "loc": {
411 "start": {
412 "line": 1,
413 "column": 27
414 },
415 "end": {
416 "line": 1,
417 "column": 28
418 }
419 },
420 "range": [
421 27,
422 28
423 ]
424 },
425 {
426 "type": "Identifier",
427 "value": "v",
428 "loc": {
429 "start": {
430 "line": 1,
431 "column": 28
432 },
433 "end": {
434 "line": 1,
435 "column": 29
436 }
437 },
438 "range": [
439 28,
440 29
441 ]
442 },
443 {
444 "type": "Punctuator",
445 "value": "}",
446 "loc": {
447 "start": {
448 "line": 1,
449 "column": 30
450 },
451 "end": {
452 "line": 1,
453 "column": 31
454 }
455 },
456 "range": [
457 30,
458 31
459 ]
460 },
461 {
462 "type": "Punctuator",
463 "value": "}",
464 "loc": {
465 "start": {
466 "line": 1,
467 "column": 32
468 },
469 "end": {
470 "line": 1,
471 "column": 33
472 }
473 },
474 "range": [
475 32,
476 33
477 ]
478 },
479 {
480 "type": "Punctuator",
481 "value": ";",
482 "loc": {
483 "start": {
484 "line": 1,
485 "column": 33
486 },
487 "end": {
488 "line": 1,
489 "column": 34
490 }
491 },
492 "range": [
493 33,
494 34
495 ]
496 }
497 ]
498 };