Debian Codegraph @

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