Debian Codegraph @

tests/fixtures/ecma-version/8/modules/async-expression.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": {
51 "type": "Identifier",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 16
56 },
57 "end": {
58 "line": 1,
59 "column": 19
60 }
61 },
62 "range": [
63 16,
64 19
65 ],
66 "name": "foo"
67 },
68 "generator": false,
69 "expression": false,
70 "async": true,
71 "params": [],
72 "body": {
73 "type": "BlockStatement",
74 "loc": {
75 "start": {
76 "line": 1,
77 "column": 22
78 },
79 "end": {
80 "line": 1,
81 "column": 25
82 }
83 },
84 "range": [
85 22,
86 25
87 ],
88 "body": []
89 }
90 }
91 }
92 ],
93 "sourceType": "module",
94 "tokens": [
95 {
96 "type": "Punctuator",
97 "value": "(",
98 "loc": {
99 "start": {
100 "line": 1,
101 "column": 0
102 },
103 "end": {
104 "line": 1,
105 "column": 1
106 }
107 },
108 "range": [
109 0,
110 1
111 ]
112 },
113 {
114 "type": "Identifier",
115 "value": "async",
116 "loc": {
117 "start": {
118 "line": 1,
119 "column": 1
120 },
121 "end": {
122 "line": 1,
123 "column": 6
124 }
125 },
126 "range": [
127 1,
128 6
129 ]
130 },
131 {
132 "type": "Keyword",
133 "value": "function",
134 "loc": {
135 "start": {
136 "line": 1,
137 "column": 7
138 },
139 "end": {
140 "line": 1,
141 "column": 15
142 }
143 },
144 "range": [
145 7,
146 15
147 ]
148 },
149 {
150 "type": "Identifier",
151 "value": "foo",
152 "loc": {
153 "start": {
154 "line": 1,
155 "column": 16
156 },
157 "end": {
158 "line": 1,
159 "column": 19
160 }
161 },
162 "range": [
163 16,
164 19
165 ]
166 },
167 {
168 "type": "Punctuator",
169 "value": "(",
170 "loc": {
171 "start": {
172 "line": 1,
173 "column": 19
174 },
175 "end": {
176 "line": 1,
177 "column": 20
178 }
179 },
180 "range": [
181 19,
182 20
183 ]
184 },
185 {
186 "type": "Punctuator",
187 "value": ")",
188 "loc": {
189 "start": {
190 "line": 1,
191 "column": 20
192 },
193 "end": {
194 "line": 1,
195 "column": 21
196 }
197 },
198 "range": [
199 20,
200 21
201 ]
202 },
203 {
204 "type": "Punctuator",
205 "value": "{",
206 "loc": {
207 "start": {
208 "line": 1,
209 "column": 22
210 },
211 "end": {
212 "line": 1,
213 "column": 23
214 }
215 },
216 "range": [
217 22,
218 23
219 ]
220 },
221 {
222 "type": "Punctuator",
223 "value": "}",
224 "loc": {
225 "start": {
226 "line": 1,
227 "column": 24
228 },
229 "end": {
230 "line": 1,
231 "column": 25
232 }
233 },
234 "range": [
235 24,
236 25
237 ]
238 },
239 {
240 "type": "Punctuator",
241 "value": ")",
242 "loc": {
243 "start": {
244 "line": 1,
245 "column": 25
246 },
247 "end": {
248 "line": 1,
249 "column": 26
250 }
251 },
252 "range": [
253 25,
254 26
255 ]
256 },
257 {
258 "type": "Punctuator",
259 "value": ";",
260 "loc": {
261 "start": {
262 "line": 1,
263 "column": 26
264 },
265 "end": {
266 "line": 1,
267 "column": 27
268 }
269 },
270 "range": [
271 26,
272 27
273 ]
274 }
275 ]
276 }