Debian Codegraph @

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