Debian Codegraph @

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