Debian Codegraph @

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