Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring/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": 16
11 }
12 },
13 "range": [
14 0,
15 16
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": 16
28 }
29 },
30 "range": [
31 0,
32 16
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": 16
45 }
46 },
47 "range": [
48 4,
49 16
50 ],
51 "id": {
52 "type": "ObjectPattern",
53 "loc": {
54 "start": {
55 "line": 1,
56 "column": 4
57 },
58 "end": {
59 "line": 1,
60 "column": 12
61 }
62 },
63 "range": [
64 4,
65 12
66 ],
67 "properties": [
68 {
69 "type": "Property",
70 "loc": {
71 "start": {
72 "line": 1,
73 "column": 5
74 },
75 "end": {
76 "line": 1,
77 "column": 11
78 }
79 },
80 "range": [
81 5,
82 11
83 ],
84 "method": false,
85 "shorthand": true,
86 "computed": false,
87 "key": {
88 "type": "Identifier",
89 "loc": {
90 "start": {
91 "line": 1,
92 "column": 5
93 },
94 "end": {
95 "line": 1,
96 "column": 6
97 }
98 },
99 "range": [
100 5,
101 6
102 ],
103 "name": "x"
104 },
105 "kind": "init",
106 "value": {
107 "type": "AssignmentPattern",
108 "loc": {
109 "start": {
110 "line": 1,
111 "column": 5
112 },
113 "end": {
114 "line": 1,
115 "column": 11
116 }
117 },
118 "range": [
119 5,
120 11
121 ],
122 "left": {
123 "type": "Identifier",
124 "loc": {
125 "start": {
126 "line": 1,
127 "column": 5
128 },
129 "end": {
130 "line": 1,
131 "column": 6
132 }
133 },
134 "range": [
135 5,
136 6
137 ],
138 "name": "x"
139 },
140 "right": {
141 "type": "Literal",
142 "loc": {
143 "start": {
144 "line": 1,
145 "column": 9
146 },
147 "end": {
148 "line": 1,
149 "column": 11
150 }
151 },
152 "range": [
153 9,
154 11
155 ],
156 "value": 10,
157 "raw": "10"
158 }
159 }
160 }
161 ]
162 },
163 "init": {
164 "type": "Identifier",
165 "loc": {
166 "start": {
167 "line": 1,
168 "column": 15
169 },
170 "end": {
171 "line": 1,
172 "column": 16
173 }
174 },
175 "range": [
176 15,
177 16
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": 5
231 },
232 "end": {
233 "line": 1,
234 "column": 6
235 }
236 },
237 "range": [
238 5,
239 6
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": "Numeric",
262 "value": "10",
263 "loc": {
264 "start": {
265 "line": 1,
266 "column": 9
267 },
268 "end": {
269 "line": 1,
270 "column": 11
271 }
272 },
273 "range": [
274 9,
275 11
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": "Punctuator",
298 "value": "=",
299 "loc": {
300 "start": {
301 "line": 1,
302 "column": 13
303 },
304 "end": {
305 "line": 1,
306 "column": 14
307 }
308 },
309 "range": [
310 13,
311 14
312 ]
313 },
314 {
315 "type": "Identifier",
316 "value": "x",
317 "loc": {
318 "start": {
319 "line": 1,
320 "column": 15
321 },
322 "end": {
323 "line": 1,
324 "column": 16
325 }
326 },
327 "range": [
328 15,
329 16
330 ]
331 }
332 ]
333 };