Debian Codegraph @

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