Debian Codegraph @

tests/fixtures/ecma-version/6/classes/class-two-methods.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": 21
11 }
12 },
13 "range": [
14 0,
15 21
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": 20
28 }
29 },
30 "range": [
31 0,
32 20
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": 20
63 }
64 },
65 "range": [
66 8,
67 20
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": 14
80 }
81 },
82 "range": [
83 9,
84 14
85 ],
86 "computed": false,
87 "key": {
88 "type": "Identifier",
89 "loc": {
90 "start": {
91 "line": 1,
92 "column": 9
93 },
94 "end": {
95 "line": 1,
96 "column": 10
97 }
98 },
99 "range": [
100 9,
101 10
102 ],
103 "name": "a"
104 },
105 "static": false,
106 "kind": "method",
107 "value": {
108 "type": "FunctionExpression",
109 "loc": {
110 "start": {
111 "line": 1,
112 "column": 10
113 },
114 "end": {
115 "line": 1,
116 "column": 14
117 }
118 },
119 "range": [
120 10,
121 14
122 ],
123 "id": null,
124 "generator": false,
125 "expression": false,
126 "params": [],
127 "body": {
128 "type": "BlockStatement",
129 "loc": {
130 "start": {
131 "line": 1,
132 "column": 12
133 },
134 "end": {
135 "line": 1,
136 "column": 14
137 }
138 },
139 "range": [
140 12,
141 14
142 ],
143 "body": []
144 }
145 }
146 },
147 {
148 "type": "MethodDefinition",
149 "loc": {
150 "start": {
151 "line": 1,
152 "column": 14
153 },
154 "end": {
155 "line": 1,
156 "column": 19
157 }
158 },
159 "range": [
160 14,
161 19
162 ],
163 "computed": false,
164 "key": {
165 "type": "Identifier",
166 "loc": {
167 "start": {
168 "line": 1,
169 "column": 14
170 },
171 "end": {
172 "line": 1,
173 "column": 15
174 }
175 },
176 "range": [
177 14,
178 15
179 ],
180 "name": "b"
181 },
182 "static": false,
183 "kind": "method",
184 "value": {
185 "type": "FunctionExpression",
186 "loc": {
187 "start": {
188 "line": 1,
189 "column": 15
190 },
191 "end": {
192 "line": 1,
193 "column": 19
194 }
195 },
196 "range": [
197 15,
198 19
199 ],
200 "id": null,
201 "generator": false,
202 "expression": false,
203 "params": [],
204 "body": {
205 "type": "BlockStatement",
206 "loc": {
207 "start": {
208 "line": 1,
209 "column": 17
210 },
211 "end": {
212 "line": 1,
213 "column": 19
214 }
215 },
216 "range": [
217 17,
218 19
219 ],
220 "body": []
221 }
222 }
223 }
224 ]
225 }
226 },
227 {
228 "type": "EmptyStatement",
229 "loc": {
230 "start": {
231 "line": 1,
232 "column": 20
233 },
234 "end": {
235 "line": 1,
236 "column": 21
237 }
238 },
239 "range": [
240 20,
241 21
242 ]
243 }
244 ],
245 "sourceType": "script",
246 "tokens": [
247 {
248 "type": "Keyword",
249 "value": "class",
250 "loc": {
251 "start": {
252 "line": 1,
253 "column": 0
254 },
255 "end": {
256 "line": 1,
257 "column": 5
258 }
259 },
260 "range": [
261 0,
262 5
263 ]
264 },
265 {
266 "type": "Identifier",
267 "value": "A",
268 "loc": {
269 "start": {
270 "line": 1,
271 "column": 6
272 },
273 "end": {
274 "line": 1,
275 "column": 7
276 }
277 },
278 "range": [
279 6,
280 7
281 ]
282 },
283 {
284 "type": "Punctuator",
285 "value": "{",
286 "loc": {
287 "start": {
288 "line": 1,
289 "column": 8
290 },
291 "end": {
292 "line": 1,
293 "column": 9
294 }
295 },
296 "range": [
297 8,
298 9
299 ]
300 },
301 {
302 "type": "Identifier",
303 "value": "a",
304 "loc": {
305 "start": {
306 "line": 1,
307 "column": 9
308 },
309 "end": {
310 "line": 1,
311 "column": 10
312 }
313 },
314 "range": [
315 9,
316 10
317 ]
318 },
319 {
320 "type": "Punctuator",
321 "value": "(",
322 "loc": {
323 "start": {
324 "line": 1,
325 "column": 10
326 },
327 "end": {
328 "line": 1,
329 "column": 11
330 }
331 },
332 "range": [
333 10,
334 11
335 ]
336 },
337 {
338 "type": "Punctuator",
339 "value": ")",
340 "loc": {
341 "start": {
342 "line": 1,
343 "column": 11
344 },
345 "end": {
346 "line": 1,
347 "column": 12
348 }
349 },
350 "range": [
351 11,
352 12
353 ]
354 },
355 {
356 "type": "Punctuator",
357 "value": "{",
358 "loc": {
359 "start": {
360 "line": 1,
361 "column": 12
362 },
363 "end": {
364 "line": 1,
365 "column": 13
366 }
367 },
368 "range": [
369 12,
370 13
371 ]
372 },
373 {
374 "type": "Punctuator",
375 "value": "}",
376 "loc": {
377 "start": {
378 "line": 1,
379 "column": 13
380 },
381 "end": {
382 "line": 1,
383 "column": 14
384 }
385 },
386 "range": [
387 13,
388 14
389 ]
390 },
391 {
392 "type": "Identifier",
393 "value": "b",
394 "loc": {
395 "start": {
396 "line": 1,
397 "column": 14
398 },
399 "end": {
400 "line": 1,
401 "column": 15
402 }
403 },
404 "range": [
405 14,
406 15
407 ]
408 },
409 {
410 "type": "Punctuator",
411 "value": "(",
412 "loc": {
413 "start": {
414 "line": 1,
415 "column": 15
416 },
417 "end": {
418 "line": 1,
419 "column": 16
420 }
421 },
422 "range": [
423 15,
424 16
425 ]
426 },
427 {
428 "type": "Punctuator",
429 "value": ")",
430 "loc": {
431 "start": {
432 "line": 1,
433 "column": 16
434 },
435 "end": {
436 "line": 1,
437 "column": 17
438 }
439 },
440 "range": [
441 16,
442 17
443 ]
444 },
445 {
446 "type": "Punctuator",
447 "value": "{",
448 "loc": {
449 "start": {
450 "line": 1,
451 "column": 17
452 },
453 "end": {
454 "line": 1,
455 "column": 18
456 }
457 },
458 "range": [
459 17,
460 18
461 ]
462 },
463 {
464 "type": "Punctuator",
465 "value": "}",
466 "loc": {
467 "start": {
468 "line": 1,
469 "column": 18
470 },
471 "end": {
472 "line": 1,
473 "column": 19
474 }
475 },
476 "range": [
477 18,
478 19
479 ]
480 },
481 {
482 "type": "Punctuator",
483 "value": "}",
484 "loc": {
485 "start": {
486 "line": 1,
487 "column": 19
488 },
489 "end": {
490 "line": 1,
491 "column": 20
492 }
493 },
494 "range": [
495 19,
496 20
497 ]
498 },
499 {
500 "type": "Punctuator",
501 "value": ";",
502 "loc": {
503 "start": {
504 "line": 1,
505 "column": 20
506 },
507 "end": {
508 "line": 1,
509 "column": 21
510 }
511 },
512 "range": [
513 20,
514 21
515 ]
516 }
517 ]
518 };