Debian Codegraph @

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