Debian Codegraph @

tests/fixtures/ecma-version/6/restParams/single-rest.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": 20
11 }
12 },
13 "range": [
14 0,
15 20
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": 19
28 }
29 },
30 "range": [
31 0,
32 19
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": "f"
51 },
52 "generator": false,
53 "expression": false,
54 "params": [
55 {
56 "type": "RestElement",
57 "loc": {
58 "start": {
59 "line": 1,
60 "column": 11
61 },
62 "end": {
63 "line": 1,
64 "column": 15
65 }
66 },
67 "range": [
68 11,
69 15
70 ],
71 "argument": {
72 "type": "Identifier",
73 "loc": {
74 "start": {
75 "line": 1,
76 "column": 14
77 },
78 "end": {
79 "line": 1,
80 "column": 15
81 }
82 },
83 "range": [
84 14,
85 15
86 ],
87 "name": "b"
88 }
89 }
90 ],
91 "body": {
92 "type": "BlockStatement",
93 "loc": {
94 "start": {
95 "line": 1,
96 "column": 17
97 },
98 "end": {
99 "line": 1,
100 "column": 19
101 }
102 },
103 "range": [
104 17,
105 19
106 ],
107 "body": []
108 }
109 },
110 {
111 "type": "EmptyStatement",
112 "loc": {
113 "start": {
114 "line": 1,
115 "column": 19
116 },
117 "end": {
118 "line": 1,
119 "column": 20
120 }
121 },
122 "range": [
123 19,
124 20
125 ]
126 }
127 ],
128 "sourceType": "script",
129 "tokens": [
130 {
131 "type": "Keyword",
132 "value": "function",
133 "loc": {
134 "start": {
135 "line": 1,
136 "column": 0
137 },
138 "end": {
139 "line": 1,
140 "column": 8
141 }
142 },
143 "range": [
144 0,
145 8
146 ]
147 },
148 {
149 "type": "Identifier",
150 "value": "f",
151 "loc": {
152 "start": {
153 "line": 1,
154 "column": 9
155 },
156 "end": {
157 "line": 1,
158 "column": 10
159 }
160 },
161 "range": [
162 9,
163 10
164 ]
165 },
166 {
167 "type": "Punctuator",
168 "value": "(",
169 "loc": {
170 "start": {
171 "line": 1,
172 "column": 10
173 },
174 "end": {
175 "line": 1,
176 "column": 11
177 }
178 },
179 "range": [
180 10,
181 11
182 ]
183 },
184 {
185 "type": "Punctuator",
186 "value": "...",
187 "loc": {
188 "start": {
189 "line": 1,
190 "column": 11
191 },
192 "end": {
193 "line": 1,
194 "column": 14
195 }
196 },
197 "range": [
198 11,
199 14
200 ]
201 },
202 {
203 "type": "Identifier",
204 "value": "b",
205 "loc": {
206 "start": {
207 "line": 1,
208 "column": 14
209 },
210 "end": {
211 "line": 1,
212 "column": 15
213 }
214 },
215 "range": [
216 14,
217 15
218 ]
219 },
220 {
221 "type": "Punctuator",
222 "value": ")",
223 "loc": {
224 "start": {
225 "line": 1,
226 "column": 15
227 },
228 "end": {
229 "line": 1,
230 "column": 16
231 }
232 },
233 "range": [
234 15,
235 16
236 ]
237 },
238 {
239 "type": "Punctuator",
240 "value": "{",
241 "loc": {
242 "start": {
243 "line": 1,
244 "column": 17
245 },
246 "end": {
247 "line": 1,
248 "column": 18
249 }
250 },
251 "range": [
252 17,
253 18
254 ]
255 },
256 {
257 "type": "Punctuator",
258 "value": "}",
259 "loc": {
260 "start": {
261 "line": 1,
262 "column": 18
263 },
264 "end": {
265 "line": 1,
266 "column": 19
267 }
268 },
269 "range": [
270 18,
271 19
272 ]
273 },
274 {
275 "type": "Punctuator",
276 "value": ";",
277 "loc": {
278 "start": {
279 "line": 1,
280 "column": 19
281 },
282 "end": {
283 "line": 1,
284 "column": 20
285 }
286 },
287 "range": [
288 19,
289 20
290 ]
291 }
292 ]
293 };