Debian Codegraph @

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