Debian Codegraph @

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