Debian Codegraph @

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