Debian Codegraph @

tests/fixtures/ecma-version/9/rest-property/valid-parameter-3.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": 18
11 }
12 },
13 "range": [
14 0,
15 18
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": 18
28 }
29 },
30 "range": [
31 0,
32 18
33 ],
34 "expression": {
35 "type": "ArrowFunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 18
44 }
45 },
46 "range": [
47 0,
48 18
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": 11
65 }
66 },
67 "range": [
68 1,
69 11
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": 3
82 }
83 },
84 "range": [
85 2,
86 3
87 ],
88 "method": false,
89 "shorthand": true,
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 "kind": "init",
110 "value": {
111 "type": "Identifier",
112 "loc": {
113 "start": {
114 "line": 1,
115 "column": 2
116 },
117 "end": {
118 "line": 1,
119 "column": 3
120 }
121 },
122 "range": [
123 2,
124 3
125 ],
126 "name": "a"
127 }
128 },
129 {
130 "type": "RestElement",
131 "loc": {
132 "start": {
133 "line": 1,
134 "column": 4
135 },
136 "end": {
137 "line": 1,
138 "column": 10
139 }
140 },
141 "range": [
142 4,
143 10
144 ],
145 "argument": {
146 "type": "Identifier",
147 "loc": {
148 "start": {
149 "line": 1,
150 "column": 7
151 },
152 "end": {
153 "line": 1,
154 "column": 10
155 }
156 },
157 "range": [
158 7,
159 10
160 ],
161 "name": "obj"
162 }
163 }
164 ]
165 }
166 ],
167 "body": {
168 "type": "BlockStatement",
169 "loc": {
170 "start": {
171 "line": 1,
172 "column": 16
173 },
174 "end": {
175 "line": 1,
176 "column": 18
177 }
178 },
179 "range": [
180 16,
181 18
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": "Punctuator",
264 "value": "...",
265 "loc": {
266 "start": {
267 "line": 1,
268 "column": 4
269 },
270 "end": {
271 "line": 1,
272 "column": 7
273 }
274 },
275 "range": [
276 4,
277 7
278 ]
279 },
280 {
281 "type": "Identifier",
282 "value": "obj",
283 "loc": {
284 "start": {
285 "line": 1,
286 "column": 7
287 },
288 "end": {
289 "line": 1,
290 "column": 10
291 }
292 },
293 "range": [
294 7,
295 10
296 ]
297 },
298 {
299 "type": "Punctuator",
300 "value": "}",
301 "loc": {
302 "start": {
303 "line": 1,
304 "column": 10
305 },
306 "end": {
307 "line": 1,
308 "column": 11
309 }
310 },
311 "range": [
312 10,
313 11
314 ]
315 },
316 {
317 "type": "Punctuator",
318 "value": ")",
319 "loc": {
320 "start": {
321 "line": 1,
322 "column": 11
323 },
324 "end": {
325 "line": 1,
326 "column": 12
327 }
328 },
329 "range": [
330 11,
331 12
332 ]
333 },
334 {
335 "type": "Punctuator",
336 "value": "=>",
337 "loc": {
338 "start": {
339 "line": 1,
340 "column": 13
341 },
342 "end": {
343 "line": 1,
344 "column": 15
345 }
346 },
347 "range": [
348 13,
349 15
350 ]
351 },
352 {
353 "type": "Punctuator",
354 "value": "{",
355 "loc": {
356 "start": {
357 "line": 1,
358 "column": 16
359 },
360 "end": {
361 "line": 1,
362 "column": 17
363 }
364 },
365 "range": [
366 16,
367 17
368 ]
369 },
370 {
371 "type": "Punctuator",
372 "value": "}",
373 "loc": {
374 "start": {
375 "line": 1,
376 "column": 17
377 },
378 "end": {
379 "line": 1,
380 "column": 18
381 }
382 },
383 "range": [
384 17,
385 18
386 ]
387 }
388 ]
389 };