Debian Codegraph @

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