Debian Codegraph @

tests/fixtures/ecma-version/6/forOf/for-of-with-var-and-no-braces.result.js

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