Debian Codegraph @

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