Debian Codegraph @

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