Debian Codegraph @

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