Debian Codegraph @

tests/fixtures/ecma-version/6/modules/export-default-named-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": "ExportDefaultDeclaration",
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": "FunctionDeclaration",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 15
40 },
41 "end": {
42 "line": 1,
43 "column": 32
44 }
45 },
46 "range": [
47 15,
48 32
49 ],
50 "id": {
51 "type": "Identifier",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 24
56 },
57 "end": {
58 "line": 1,
59 "column": 27
60 }
61 },
62 "range": [
63 24,
64 27
65 ],
66 "name": "foo"
67 },
68 "generator": false,
69 "expression": false,
70 "params": [],
71 "body": {
72 "type": "BlockStatement",
73 "loc": {
74 "start": {
75 "line": 1,
76 "column": 30
77 },
78 "end": {
79 "line": 1,
80 "column": 32
81 }
82 },
83 "range": [
84 30,
85 32
86 ],
87 "body": []
88 }
89 }
90 }
91 ],
92 "sourceType": "module",
93 "tokens": [
94 {
95 "type": "Keyword",
96 "value": "export",
97 "loc": {
98 "start": {
99 "line": 1,
100 "column": 0
101 },
102 "end": {
103 "line": 1,
104 "column": 6
105 }
106 },
107 "range": [
108 0,
109 6
110 ]
111 },
112 {
113 "type": "Keyword",
114 "value": "default",
115 "loc": {
116 "start": {
117 "line": 1,
118 "column": 7
119 },
120 "end": {
121 "line": 1,
122 "column": 14
123 }
124 },
125 "range": [
126 7,
127 14
128 ]
129 },
130 {
131 "type": "Keyword",
132 "value": "function",
133 "loc": {
134 "start": {
135 "line": 1,
136 "column": 15
137 },
138 "end": {
139 "line": 1,
140 "column": 23
141 }
142 },
143 "range": [
144 15,
145 23
146 ]
147 },
148 {
149 "type": "Identifier",
150 "value": "foo",
151 "loc": {
152 "start": {
153 "line": 1,
154 "column": 24
155 },
156 "end": {
157 "line": 1,
158 "column": 27
159 }
160 },
161 "range": [
162 24,
163 27
164 ]
165 },
166 {
167 "type": "Punctuator",
168 "value": "(",
169 "loc": {
170 "start": {
171 "line": 1,
172 "column": 27
173 },
174 "end": {
175 "line": 1,
176 "column": 28
177 }
178 },
179 "range": [
180 27,
181 28
182 ]
183 },
184 {
185 "type": "Punctuator",
186 "value": ")",
187 "loc": {
188 "start": {
189 "line": 1,
190 "column": 28
191 },
192 "end": {
193 "line": 1,
194 "column": 29
195 }
196 },
197 "range": [
198 28,
199 29
200 ]
201 },
202 {
203 "type": "Punctuator",
204 "value": "{",
205 "loc": {
206 "start": {
207 "line": 1,
208 "column": 30
209 },
210 "end": {
211 "line": 1,
212 "column": 31
213 }
214 },
215 "range": [
216 30,
217 31
218 ]
219 },
220 {
221 "type": "Punctuator",
222 "value": "}",
223 "loc": {
224 "start": {
225 "line": 1,
226 "column": 31
227 },
228 "end": {
229 "line": 1,
230 "column": 32
231 }
232 },
233 "range": [
234 31,
235 32
236 ]
237 }
238 ]
239 };