Debian Codegraph @

tests/fixtures/ecma-version/6/classes/class-static-method-named-prototype.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": 35
11 }
12 },
13 "range": [
14 0,
15 35
16 ],
17 "body": [
18 {
19 "type": "ClassDeclaration",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 34
28 }
29 },
30 "range": [
31 0,
32 34
33 ],
34 "id": {
35 "type": "Identifier",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 6
40 },
41 "end": {
42 "line": 1,
43 "column": 7
44 }
45 },
46 "range": [
47 6,
48 7
49 ],
50 "name": "A"
51 },
52 "superClass": null,
53 "body": {
54 "type": "ClassBody",
55 "loc": {
56 "start": {
57 "line": 1,
58 "column": 8
59 },
60 "end": {
61 "line": 1,
62 "column": 34
63 }
64 },
65 "range": [
66 8,
67 34
68 ],
69 "body": [
70 {
71 "type": "MethodDefinition",
72 "loc": {
73 "start": {
74 "line": 1,
75 "column": 9
76 },
77 "end": {
78 "line": 1,
79 "column": 33
80 }
81 },
82 "range": [
83 9,
84 33
85 ],
86 "computed": true,
87 "key": {
88 "type": "Literal",
89 "loc": {
90 "start": {
91 "line": 1,
92 "column": 17
93 },
94 "end": {
95 "line": 1,
96 "column": 28
97 }
98 },
99 "range": [
100 17,
101 28
102 ],
103 "value": "prototype",
104 "raw": "\"prototype\""
105 },
106 "static": true,
107 "kind": "method",
108 "value": {
109 "type": "FunctionExpression",
110 "loc": {
111 "start": {
112 "line": 1,
113 "column": 29
114 },
115 "end": {
116 "line": 1,
117 "column": 33
118 }
119 },
120 "range": [
121 29,
122 33
123 ],
124 "id": null,
125 "generator": false,
126 "expression": false,
127 "params": [],
128 "body": {
129 "type": "BlockStatement",
130 "loc": {
131 "start": {
132 "line": 1,
133 "column": 31
134 },
135 "end": {
136 "line": 1,
137 "column": 33
138 }
139 },
140 "range": [
141 31,
142 33
143 ],
144 "body": []
145 }
146 }
147 }
148 ]
149 }
150 },
151 {
152 "type": "EmptyStatement",
153 "loc": {
154 "start": {
155 "line": 1,
156 "column": 34
157 },
158 "end": {
159 "line": 1,
160 "column": 35
161 }
162 },
163 "range": [
164 34,
165 35
166 ]
167 }
168 ],
169 "sourceType": "script",
170 "tokens": [
171 {
172 "type": "Keyword",
173 "value": "class",
174 "loc": {
175 "start": {
176 "line": 1,
177 "column": 0
178 },
179 "end": {
180 "line": 1,
181 "column": 5
182 }
183 },
184 "range": [
185 0,
186 5
187 ]
188 },
189 {
190 "type": "Identifier",
191 "value": "A",
192 "loc": {
193 "start": {
194 "line": 1,
195 "column": 6
196 },
197 "end": {
198 "line": 1,
199 "column": 7
200 }
201 },
202 "range": [
203 6,
204 7
205 ]
206 },
207 {
208 "type": "Punctuator",
209 "value": "{",
210 "loc": {
211 "start": {
212 "line": 1,
213 "column": 8
214 },
215 "end": {
216 "line": 1,
217 "column": 9
218 }
219 },
220 "range": [
221 8,
222 9
223 ]
224 },
225 {
226 "type": "Keyword",
227 "value": "static",
228 "loc": {
229 "start": {
230 "line": 1,
231 "column": 9
232 },
233 "end": {
234 "line": 1,
235 "column": 15
236 }
237 },
238 "range": [
239 9,
240 15
241 ]
242 },
243 {
244 "type": "Punctuator",
245 "value": "[",
246 "loc": {
247 "start": {
248 "line": 1,
249 "column": 16
250 },
251 "end": {
252 "line": 1,
253 "column": 17
254 }
255 },
256 "range": [
257 16,
258 17
259 ]
260 },
261 {
262 "type": "String",
263 "value": "\"prototype\"",
264 "loc": {
265 "start": {
266 "line": 1,
267 "column": 17
268 },
269 "end": {
270 "line": 1,
271 "column": 28
272 }
273 },
274 "range": [
275 17,
276 28
277 ]
278 },
279 {
280 "type": "Punctuator",
281 "value": "]",
282 "loc": {
283 "start": {
284 "line": 1,
285 "column": 28
286 },
287 "end": {
288 "line": 1,
289 "column": 29
290 }
291 },
292 "range": [
293 28,
294 29
295 ]
296 },
297 {
298 "type": "Punctuator",
299 "value": "(",
300 "loc": {
301 "start": {
302 "line": 1,
303 "column": 29
304 },
305 "end": {
306 "line": 1,
307 "column": 30
308 }
309 },
310 "range": [
311 29,
312 30
313 ]
314 },
315 {
316 "type": "Punctuator",
317 "value": ")",
318 "loc": {
319 "start": {
320 "line": 1,
321 "column": 30
322 },
323 "end": {
324 "line": 1,
325 "column": 31
326 }
327 },
328 "range": [
329 30,
330 31
331 ]
332 },
333 {
334 "type": "Punctuator",
335 "value": "{",
336 "loc": {
337 "start": {
338 "line": 1,
339 "column": 31
340 },
341 "end": {
342 "line": 1,
343 "column": 32
344 }
345 },
346 "range": [
347 31,
348 32
349 ]
350 },
351 {
352 "type": "Punctuator",
353 "value": "}",
354 "loc": {
355 "start": {
356 "line": 1,
357 "column": 32
358 },
359 "end": {
360 "line": 1,
361 "column": 33
362 }
363 },
364 "range": [
365 32,
366 33
367 ]
368 },
369 {
370 "type": "Punctuator",
371 "value": "}",
372 "loc": {
373 "start": {
374 "line": 1,
375 "column": 33
376 },
377 "end": {
378 "line": 1,
379 "column": 34
380 }
381 },
382 "range": [
383 33,
384 34
385 ]
386 },
387 {
388 "type": "Punctuator",
389 "value": ";",
390 "loc": {
391 "start": {
392 "line": 1,
393 "column": 34
394 },
395 "end": {
396 "line": 1,
397 "column": 35
398 }
399 },
400 "range": [
401 34,
402 35
403 ]
404 }
405 ]
406 };