Debian Codegraph @

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