Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object.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": 15
11 }
12 },
13 "range": [
14 0,
15 15
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": 15
28 }
29 },
30 "range": [
31 0,
32 15
33 ],
34 "expression": {
35 "type": "ArrowFunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 15
44 }
45 },
46 "range": [
47 0,
48 15
49 ],
50 "id": null,
51 "generator": false,
52 "expression": true,
53 "params": [
54 {
55 "type": "ObjectPattern",
56 "loc": {
57 "start": {
58 "line": 1,
59 "column": 1
60 },
61 "end": {
62 "line": 1,
63 "column": 9
64 }
65 },
66 "range": [
67 1,
68 9
69 ],
70 "properties": [
71 {
72 "type": "Property",
73 "loc": {
74 "start": {
75 "line": 1,
76 "column": 2
77 },
78 "end": {
79 "line": 1,
80 "column": 8
81 }
82 },
83 "range": [
84 2,
85 8
86 ],
87 "method": false,
88 "shorthand": true,
89 "computed": false,
90 "key": {
91 "type": "Identifier",
92 "loc": {
93 "start": {
94 "line": 1,
95 "column": 2
96 },
97 "end": {
98 "line": 1,
99 "column": 3
100 }
101 },
102 "range": [
103 2,
104 3
105 ],
106 "name": "x"
107 },
108 "kind": "init",
109 "value": {
110 "type": "AssignmentPattern",
111 "loc": {
112 "start": {
113 "line": 1,
114 "column": 2
115 },
116 "end": {
117 "line": 1,
118 "column": 8
119 }
120 },
121 "range": [
122 2,
123 8
124 ],
125 "left": {
126 "type": "Identifier",
127 "loc": {
128 "start": {
129 "line": 1,
130 "column": 2
131 },
132 "end": {
133 "line": 1,
134 "column": 3
135 }
136 },
137 "range": [
138 2,
139 3
140 ],
141 "name": "x"
142 },
143 "right": {
144 "type": "Literal",
145 "loc": {
146 "start": {
147 "line": 1,
148 "column": 6
149 },
150 "end": {
151 "line": 1,
152 "column": 8
153 }
154 },
155 "range": [
156 6,
157 8
158 ],
159 "value": 10,
160 "raw": "10"
161 }
162 }
163 }
164 ]
165 }
166 ],
167 "body": {
168 "type": "Identifier",
169 "loc": {
170 "start": {
171 "line": 1,
172 "column": 14
173 },
174 "end": {
175 "line": 1,
176 "column": 15
177 }
178 },
179 "range": [
180 14,
181 15
182 ],
183 "name": "x"
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": "x",
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": 4
251 },
252 "end": {
253 "line": 1,
254 "column": 5
255 }
256 },
257 "range": [
258 4,
259 5
260 ]
261 },
262 {
263 "type": "Numeric",
264 "value": "10",
265 "loc": {
266 "start": {
267 "line": 1,
268 "column": 6
269 },
270 "end": {
271 "line": 1,
272 "column": 8
273 }
274 },
275 "range": [
276 6,
277 8
278 ]
279 },
280 {
281 "type": "Punctuator",
282 "value": "}",
283 "loc": {
284 "start": {
285 "line": 1,
286 "column": 8
287 },
288 "end": {
289 "line": 1,
290 "column": 9
291 }
292 },
293 "range": [
294 8,
295 9
296 ]
297 },
298 {
299 "type": "Punctuator",
300 "value": ")",
301 "loc": {
302 "start": {
303 "line": 1,
304 "column": 9
305 },
306 "end": {
307 "line": 1,
308 "column": 10
309 }
310 },
311 "range": [
312 9,
313 10
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": 13
327 }
328 },
329 "range": [
330 11,
331 13
332 ]
333 },
334 {
335 "type": "Identifier",
336 "value": "x",
337 "loc": {
338 "start": {
339 "line": 1,
340 "column": 14
341 },
342 "end": {
343 "line": 1,
344 "column": 15
345 }
346 },
347 "range": [
348 14,
349 15
350 ]
351 }
352 ]
353 };