Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring-and-spread/var-multi-destructured.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": 18
11 }
12 },
13 "range": [
14 0,
15 18
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": 18
28 }
29 },
30 "range": [
31 0,
32 18
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": 17
45 }
46 },
47 "range": [
48 4,
49 17
50 ],
51 "id": {
52 "type": "ArrayPattern",
53 "loc": {
54 "start": {
55 "line": 1,
56 "column": 4
57 },
58 "end": {
59 "line": 1,
60 "column": 13
61 }
62 },
63 "range": [
64 4,
65 13
66 ],
67 "elements": [
68 {
69 "type": "Identifier",
70 "loc": {
71 "start": {
72 "line": 1,
73 "column": 5
74 },
75 "end": {
76 "line": 1,
77 "column": 6
78 }
79 },
80 "range": [
81 5,
82 6
83 ],
84 "name": "a"
85 },
86 {
87 "type": "RestElement",
88 "loc": {
89 "start": {
90 "line": 1,
91 "column": 8
92 },
93 "end": {
94 "line": 1,
95 "column": 12
96 }
97 },
98 "range": [
99 8,
100 12
101 ],
102 "argument": {
103 "type": "Identifier",
104 "loc": {
105 "start": {
106 "line": 1,
107 "column": 11
108 },
109 "end": {
110 "line": 1,
111 "column": 12
112 }
113 },
114 "range": [
115 11,
116 12
117 ],
118 "name": "b"
119 }
120 }
121 ]
122 },
123 "init": {
124 "type": "Identifier",
125 "loc": {
126 "start": {
127 "line": 1,
128 "column": 16
129 },
130 "end": {
131 "line": 1,
132 "column": 17
133 }
134 },
135 "range": [
136 16,
137 17
138 ],
139 "name": "c"
140 }
141 }
142 ],
143 "kind": "var"
144 }
145 ],
146 "sourceType": "script",
147 "tokens": [
148 {
149 "type": "Keyword",
150 "value": "var",
151 "loc": {
152 "start": {
153 "line": 1,
154 "column": 0
155 },
156 "end": {
157 "line": 1,
158 "column": 3
159 }
160 },
161 "range": [
162 0,
163 3
164 ]
165 },
166 {
167 "type": "Punctuator",
168 "value": "[",
169 "loc": {
170 "start": {
171 "line": 1,
172 "column": 4
173 },
174 "end": {
175 "line": 1,
176 "column": 5
177 }
178 },
179 "range": [
180 4,
181 5
182 ]
183 },
184 {
185 "type": "Identifier",
186 "value": "a",
187 "loc": {
188 "start": {
189 "line": 1,
190 "column": 5
191 },
192 "end": {
193 "line": 1,
194 "column": 6
195 }
196 },
197 "range": [
198 5,
199 6
200 ]
201 },
202 {
203 "type": "Punctuator",
204 "value": ",",
205 "loc": {
206 "start": {
207 "line": 1,
208 "column": 6
209 },
210 "end": {
211 "line": 1,
212 "column": 7
213 }
214 },
215 "range": [
216 6,
217 7
218 ]
219 },
220 {
221 "type": "Punctuator",
222 "value": "...",
223 "loc": {
224 "start": {
225 "line": 1,
226 "column": 8
227 },
228 "end": {
229 "line": 1,
230 "column": 11
231 }
232 },
233 "range": [
234 8,
235 11
236 ]
237 },
238 {
239 "type": "Identifier",
240 "value": "b",
241 "loc": {
242 "start": {
243 "line": 1,
244 "column": 11
245 },
246 "end": {
247 "line": 1,
248 "column": 12
249 }
250 },
251 "range": [
252 11,
253 12
254 ]
255 },
256 {
257 "type": "Punctuator",
258 "value": "]",
259 "loc": {
260 "start": {
261 "line": 1,
262 "column": 12
263 },
264 "end": {
265 "line": 1,
266 "column": 13
267 }
268 },
269 "range": [
270 12,
271 13
272 ]
273 },
274 {
275 "type": "Punctuator",
276 "value": "=",
277 "loc": {
278 "start": {
279 "line": 1,
280 "column": 14
281 },
282 "end": {
283 "line": 1,
284 "column": 15
285 }
286 },
287 "range": [
288 14,
289 15
290 ]
291 },
292 {
293 "type": "Identifier",
294 "value": "c",
295 "loc": {
296 "start": {
297 "line": 1,
298 "column": 16
299 },
300 "end": {
301 "line": 1,
302 "column": 17
303 }
304 },
305 "range": [
306 16,
307 17
308 ]
309 },
310 {
311 "type": "Punctuator",
312 "value": ";",
313 "loc": {
314 "start": {
315 "line": 1,
316 "column": 17
317 },
318 "end": {
319 "line": 1,
320 "column": 18
321 }
322 },
323 "range": [
324 17,
325 18
326 ]
327 }
328 ]
329 };