Debian Codegraph @

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