Debian Codegraph @

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