Debian Codegraph @

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