Debian Codegraph @

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