Debian Codegraph @

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