Debian Codegraph @

tests/fixtures/ecma-version/6/arrowFunctions/no-auto-return.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": 18
11 }
12 },
13 "range": [
14 0,
15 18
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": 18
28 }
29 },
30 "range": [
31 0,
32 18
33 ],
34 "expression": {
35 "type": "ArrowFunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 17
44 }
45 },
46 "range": [
47 0,
48 17
49 ],
50 "id": null,
51 "generator": false,
52 "expression": false,
53 "params": [
54 {
55 "type": "Identifier",
56 "loc": {
57 "start": {
58 "line": 1,
59 "column": 1
60 },
61 "end": {
62 "line": 1,
63 "column": 2
64 }
65 },
66 "range": [
67 1,
68 2
69 ],
70 "name": "a"
71 },
72 {
73 "type": "Identifier",
74 "loc": {
75 "start": {
76 "line": 1,
77 "column": 4
78 },
79 "end": {
80 "line": 1,
81 "column": 5
82 }
83 },
84 "range": [
85 4,
86 5
87 ],
88 "name": "b"
89 }
90 ],
91 "body": {
92 "type": "BlockStatement",
93 "loc": {
94 "start": {
95 "line": 1,
96 "column": 10
97 },
98 "end": {
99 "line": 1,
100 "column": 17
101 }
102 },
103 "range": [
104 10,
105 17
106 ],
107 "body": [
108 {
109 "type": "ExpressionStatement",
110 "loc": {
111 "start": {
112 "line": 1,
113 "column": 12
114 },
115 "end": {
116 "line": 1,
117 "column": 15
118 }
119 },
120 "range": [
121 12,
122 15
123 ],
124 "expression": {
125 "type": "Literal",
126 "loc": {
127 "start": {
128 "line": 1,
129 "column": 12
130 },
131 "end": {
132 "line": 1,
133 "column": 14
134 }
135 },
136 "range": [
137 12,
138 14
139 ],
140 "value": 42,
141 "raw": "42"
142 }
143 }
144 ]
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": "Identifier",
171 "value": "a",
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": "Punctuator",
189 "value": ",",
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": "Identifier",
207 "value": "b",
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": "Punctuator",
225 "value": ")",
226 "loc": {
227 "start": {
228 "line": 1,
229 "column": 5
230 },
231 "end": {
232 "line": 1,
233 "column": 6
234 }
235 },
236 "range": [
237 5,
238 6
239 ]
240 },
241 {
242 "type": "Punctuator",
243 "value": "=>",
244 "loc": {
245 "start": {
246 "line": 1,
247 "column": 7
248 },
249 "end": {
250 "line": 1,
251 "column": 9
252 }
253 },
254 "range": [
255 7,
256 9
257 ]
258 },
259 {
260 "type": "Punctuator",
261 "value": "{",
262 "loc": {
263 "start": {
264 "line": 1,
265 "column": 10
266 },
267 "end": {
268 "line": 1,
269 "column": 11
270 }
271 },
272 "range": [
273 10,
274 11
275 ]
276 },
277 {
278 "type": "Numeric",
279 "value": "42",
280 "loc": {
281 "start": {
282 "line": 1,
283 "column": 12
284 },
285 "end": {
286 "line": 1,
287 "column": 14
288 }
289 },
290 "range": [
291 12,
292 14
293 ]
294 },
295 {
296 "type": "Punctuator",
297 "value": ";",
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 "type": "Punctuator",
315 "value": "}",
316 "loc": {
317 "start": {
318 "line": 1,
319 "column": 16
320 },
321 "end": {
322 "line": 1,
323 "column": 17
324 }
325 },
326 "range": [
327 16,
328 17
329 ]
330 },
331 {
332 "type": "Punctuator",
333 "value": ";",
334 "loc": {
335 "start": {
336 "line": 1,
337 "column": 17
338 },
339 "end": {
340 "line": 1,
341 "column": 18
342 }
343 },
344 "range": [
345 17,
346 18
347 ]
348 }
349 ]
350 };