Debian Codegraph @

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