Debian Codegraph @

tests/fixtures/ecma-version/6/arrowFunctions/block-body-not-object.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": 19
11 }
12 },
13 "range": [
14 0,
15 19
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": 19
28 }
29 },
30 "range": [
31 0,
32 19
33 ],
34 "expression": {
35 "type": "ArrowFunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 18
44 }
45 },
46 "range": [
47 0,
48 18
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": 0
60 },
61 "end": {
62 "line": 1,
63 "column": 1
64 }
65 },
66 "range": [
67 0,
68 1
69 ],
70 "name": "e"
71 }
72 ],
73 "body": {
74 "type": "BlockStatement",
75 "loc": {
76 "start": {
77 "line": 1,
78 "column": 5
79 },
80 "end": {
81 "line": 1,
82 "column": 18
83 }
84 },
85 "range": [
86 5,
87 18
88 ],
89 "body": [
90 {
91 "type": "LabeledStatement",
92 "loc": {
93 "start": {
94 "line": 1,
95 "column": 7
96 },
97 "end": {
98 "line": 1,
99 "column": 16
100 }
101 },
102 "range": [
103 7,
104 16
105 ],
106 "body": {
107 "type": "ExpressionStatement",
108 "loc": {
109 "start": {
110 "line": 1,
111 "column": 14
112 },
113 "end": {
114 "line": 1,
115 "column": 16
116 }
117 },
118 "range": [
119 14,
120 16
121 ],
122 "expression": {
123 "type": "Literal",
124 "loc": {
125 "start": {
126 "line": 1,
127 "column": 14
128 },
129 "end": {
130 "line": 1,
131 "column": 16
132 }
133 },
134 "range": [
135 14,
136 16
137 ],
138 "value": 42,
139 "raw": "42"
140 }
141 },
142 "label": {
143 "type": "Identifier",
144 "loc": {
145 "start": {
146 "line": 1,
147 "column": 7
148 },
149 "end": {
150 "line": 1,
151 "column": 12
152 }
153 },
154 "range": [
155 7,
156 12
157 ],
158 "name": "label"
159 }
160 }
161 ]
162 }
163 }
164 }
165 ],
166 "sourceType": "script",
167 "tokens": [
168 {
169 "type": "Identifier",
170 "value": "e",
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": 4
197 }
198 },
199 "range": [
200 2,
201 4
202 ]
203 },
204 {
205 "type": "Punctuator",
206 "value": "{",
207 "loc": {
208 "start": {
209 "line": 1,
210 "column": 5
211 },
212 "end": {
213 "line": 1,
214 "column": 6
215 }
216 },
217 "range": [
218 5,
219 6
220 ]
221 },
222 {
223 "type": "Identifier",
224 "value": "label",
225 "loc": {
226 "start": {
227 "line": 1,
228 "column": 7
229 },
230 "end": {
231 "line": 1,
232 "column": 12
233 }
234 },
235 "range": [
236 7,
237 12
238 ]
239 },
240 {
241 "type": "Punctuator",
242 "value": ":",
243 "loc": {
244 "start": {
245 "line": 1,
246 "column": 12
247 },
248 "end": {
249 "line": 1,
250 "column": 13
251 }
252 },
253 "range": [
254 12,
255 13
256 ]
257 },
258 {
259 "type": "Numeric",
260 "value": "42",
261 "loc": {
262 "start": {
263 "line": 1,
264 "column": 14
265 },
266 "end": {
267 "line": 1,
268 "column": 16
269 }
270 },
271 "range": [
272 14,
273 16
274 ]
275 },
276 {
277 "type": "Punctuator",
278 "value": "}",
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 };