Debian Codegraph @

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