Debian Codegraph @

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