Debian Codegraph @

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