Debian Codegraph @

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