Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring/params-array.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": "ArrayPattern",
57 "loc": {
58 "start": {
59 "line": 1,
60 "column": 11
61 },
62 "end": {
63 "line": 1,
64 "column": 19
65 }
66 },
67 "range": [
68 11,
69 19
70 ],
71 "elements": [
72 {
73 "type": "Identifier",
74 "loc": {
75 "start": {
76 "line": 1,
77 "column": 13
78 },
79 "end": {
80 "line": 1,
81 "column": 14
82 }
83 },
84 "range": [
85 13,
86 14
87 ],
88 "name": "a"
89 },
90 {
91 "type": "Identifier",
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 "name": "b"
107 }
108 ]
109 }
110 ],
111 "body": {
112 "type": "BlockStatement",
113 "loc": {
114 "start": {
115 "line": 1,
116 "column": 20
117 },
118 "end": {
119 "line": 1,
120 "column": 22
121 }
122 },
123 "range": [
124 20,
125 22
126 ],
127 "body": []
128 }
129 },
130 {
131 "type": "EmptyStatement",
132 "loc": {
133 "start": {
134 "line": 1,
135 "column": 22
136 },
137 "end": {
138 "line": 1,
139 "column": 23
140 }
141 },
142 "range": [
143 22,
144 23
145 ]
146 }
147 ],
148 "sourceType": "script",
149 "tokens": [
150 {
151 "type": "Keyword",
152 "value": "function",
153 "loc": {
154 "start": {
155 "line": 1,
156 "column": 0
157 },
158 "end": {
159 "line": 1,
160 "column": 8
161 }
162 },
163 "range": [
164 0,
165 8
166 ]
167 },
168 {
169 "type": "Identifier",
170 "value": "x",
171 "loc": {
172 "start": {
173 "line": 1,
174 "column": 9
175 },
176 "end": {
177 "line": 1,
178 "column": 10
179 }
180 },
181 "range": [
182 9,
183 10
184 ]
185 },
186 {
187 "type": "Punctuator",
188 "value": "(",
189 "loc": {
190 "start": {
191 "line": 1,
192 "column": 10
193 },
194 "end": {
195 "line": 1,
196 "column": 11
197 }
198 },
199 "range": [
200 10,
201 11
202 ]
203 },
204 {
205 "type": "Punctuator",
206 "value": "[",
207 "loc": {
208 "start": {
209 "line": 1,
210 "column": 11
211 },
212 "end": {
213 "line": 1,
214 "column": 12
215 }
216 },
217 "range": [
218 11,
219 12
220 ]
221 },
222 {
223 "type": "Identifier",
224 "value": "a",
225 "loc": {
226 "start": {
227 "line": 1,
228 "column": 13
229 },
230 "end": {
231 "line": 1,
232 "column": 14
233 }
234 },
235 "range": [
236 13,
237 14
238 ]
239 },
240 {
241 "type": "Punctuator",
242 "value": ",",
243 "loc": {
244 "start": {
245 "line": 1,
246 "column": 14
247 },
248 "end": {
249 "line": 1,
250 "column": 15
251 }
252 },
253 "range": [
254 14,
255 15
256 ]
257 },
258 {
259 "type": "Identifier",
260 "value": "b",
261 "loc": {
262 "start": {
263 "line": 1,
264 "column": 16
265 },
266 "end": {
267 "line": 1,
268 "column": 17
269 }
270 },
271 "range": [
272 16,
273 17
274 ]
275 },
276 {
277 "type": "Punctuator",
278 "value": "]",
279 "loc": {
280 "start": {
281 "line": 1,
282 "column": 18
283 },
284 "end": {
285 "line": 1,
286 "column": 19
287 }
288 },
289 "range": [
290 18,
291 19
292 ]
293 },
294 {
295 "type": "Punctuator",
296 "value": ")",
297 "loc": {
298 "start": {
299 "line": 1,
300 "column": 19
301 },
302 "end": {
303 "line": 1,
304 "column": 20
305 }
306 },
307 "range": [
308 19,
309 20
310 ]
311 },
312 {
313 "type": "Punctuator",
314 "value": "{",
315 "loc": {
316 "start": {
317 "line": 1,
318 "column": 20
319 },
320 "end": {
321 "line": 1,
322 "column": 21
323 }
324 },
325 "range": [
326 20,
327 21
328 ]
329 },
330 {
331 "type": "Punctuator",
332 "value": "}",
333 "loc": {
334 "start": {
335 "line": 1,
336 "column": 21
337 },
338 "end": {
339 "line": 1,
340 "column": 22
341 }
342 },
343 "range": [
344 21,
345 22
346 ]
347 },
348 {
349 "type": "Punctuator",
350 "value": ";",
351 "loc": {
352 "start": {
353 "line": 1,
354 "column": 22
355 },
356 "end": {
357 "line": 1,
358 "column": 23
359 }
360 },
361 "range": [
362 22,
363 23
364 ]
365 }
366 ]
367 };