Debian Codegraph @

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