Debian Codegraph @

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