Debian Codegraph @

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