Debian Codegraph @

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