Debian Codegraph @

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