1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "C", 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 5 16 }, 17 "end": { 18 "line": 17, 19 "column": 6 20 } 21 } 22 }, 23 "init": null, 24 "loc": { 25 "start": { 26 "line": 17, 27 "column": 5 28 }, 29 "end": { 30 "line": 17, 31 "column": 6 32 } 33 } 34 } 35 ], 36 "kind": "var", 37 "loc": { 38 "start": { 39 "line": 17, 40 "column": 1 41 }, 42 "end": { 43 "line": 17, 44 "column": 7 45 } 46 } 47 }, 48 { 49 "type": "VariableDeclaration", 50 "declarations": [ 51 { 52 "type": "VariableDeclarator", 53 "id": { 54 "type": "Identifier", 55 "name": "cls1", 56 "loc": { 57 "start": { 58 "line": 19, 59 "column": 5 60 }, 61 "end": { 62 "line": 19, 63 "column": 9 64 } 65 } 66 }, 67 "init": { 68 "type": "ClassExpression", 69 "definition": { 70 "id": { 71 "type": "Identifier", 72 "name": "C", 73 "loc": { 74 "start": { 75 "line": 19, 76 "column": 18 77 }, 78 "end": { 79 "line": 19, 80 "column": 19 81 } 82 } 83 }, 84 "superClass": null, 85 "implements": [], 86 "constructor": { 87 "type": "MethodDefinition", 88 "key": { 89 "type": "Identifier", 90 "name": "constructor", 91 "loc": { 92 "start": { 93 "line": 1, 94 "column": 1 95 }, 96 "end": { 97 "line": 1, 98 "column": 1 99 } 100 } 101 }, 102 "kind": "constructor", 103 "static": false, 104 "optional": false, 105 "computed": false, 106 "value": { 107 "type": "FunctionExpression", 108 "function": { 109 "type": "ScriptFunction", 110 "id": null, 111 "generator": false, 112 "async": false, 113 "expression": false, 114 "params": [], 115 "body": { 116 "type": "BlockStatement", 117 "statements": [], 118 "loc": { 119 "start": { 120 "line": 1, 121 "column": 1 122 }, 123 "end": { 124 "line": 1, 125 "column": 1 126 } 127 } 128 }, 129 "loc": { 130 "start": { 131 "line": 1, 132 "column": 1 133 }, 134 "end": { 135 "line": 1, 136 "column": 1 137 } 138 } 139 }, 140 "loc": { 141 "start": { 142 "line": 1, 143 "column": 1 144 }, 145 "end": { 146 "line": 1, 147 "column": 1 148 } 149 } 150 }, 151 "overloads": [], 152 "decorators": [], 153 "loc": { 154 "start": { 155 "line": 19, 156 "column": 12 157 }, 158 "end": { 159 "line": 27, 160 "column": 2 161 } 162 } 163 }, 164 "body": [ 165 { 166 "type": "MethodDefinition", 167 "key": { 168 "type": "Identifier", 169 "name": "method", 170 "loc": { 171 "start": { 172 "line": 20, 173 "column": 3 174 }, 175 "end": { 176 "line": 20, 177 "column": 9 178 } 179 } 180 }, 181 "kind": "method", 182 "static": false, 183 "optional": false, 184 "computed": false, 185 "value": { 186 "type": "FunctionExpression", 187 "function": { 188 "type": "ScriptFunction", 189 "id": null, 190 "generator": false, 191 "async": false, 192 "expression": false, 193 "params": [], 194 "body": { 195 "type": "BlockStatement", 196 "statements": [ 197 { 198 "type": "ReturnStatement", 199 "argument": { 200 "type": "Identifier", 201 "name": "C", 202 "loc": { 203 "start": { 204 "line": 21, 205 "column": 12 206 }, 207 "end": { 208 "line": 21, 209 "column": 13 210 } 211 } 212 }, 213 "loc": { 214 "start": { 215 "line": 21, 216 "column": 5 217 }, 218 "end": { 219 "line": 21, 220 "column": 14 221 } 222 } 223 } 224 ], 225 "loc": { 226 "start": { 227 "line": 20, 228 "column": 12 229 }, 230 "end": { 231 "line": 22, 232 "column": 4 233 } 234 } 235 }, 236 "loc": { 237 "start": { 238 "line": 20, 239 "column": 9 240 }, 241 "end": { 242 "line": 22, 243 "column": 4 244 } 245 } 246 }, 247 "loc": { 248 "start": { 249 "line": 20, 250 "column": 9 251 }, 252 "end": { 253 "line": 22, 254 "column": 4 255 } 256 } 257 }, 258 "overloads": [], 259 "decorators": [], 260 "loc": { 261 "start": { 262 "line": 20, 263 "column": 3 264 }, 265 "end": { 266 "line": 22, 267 "column": 4 268 } 269 } 270 }, 271 { 272 "type": "MethodDefinition", 273 "key": { 274 "type": "Identifier", 275 "name": "staticMethod", 276 "loc": { 277 "start": { 278 "line": 24, 279 "column": 10 280 }, 281 "end": { 282 "line": 24, 283 "column": 22 284 } 285 } 286 }, 287 "kind": "method", 288 "static": true, 289 "optional": false, 290 "computed": false, 291 "value": { 292 "type": "FunctionExpression", 293 "function": { 294 "type": "ScriptFunction", 295 "id": null, 296 "generator": false, 297 "async": false, 298 "expression": false, 299 "params": [], 300 "body": { 301 "type": "BlockStatement", 302 "statements": [ 303 { 304 "type": "ReturnStatement", 305 "argument": { 306 "type": "Identifier", 307 "name": "C", 308 "loc": { 309 "start": { 310 "line": 25, 311 "column": 12 312 }, 313 "end": { 314 "line": 25, 315 "column": 13 316 } 317 } 318 }, 319 "loc": { 320 "start": { 321 "line": 25, 322 "column": 5 323 }, 324 "end": { 325 "line": 25, 326 "column": 14 327 } 328 } 329 } 330 ], 331 "loc": { 332 "start": { 333 "line": 24, 334 "column": 25 335 }, 336 "end": { 337 "line": 26, 338 "column": 4 339 } 340 } 341 }, 342 "loc": { 343 "start": { 344 "line": 24, 345 "column": 22 346 }, 347 "end": { 348 "line": 26, 349 "column": 4 350 } 351 } 352 }, 353 "loc": { 354 "start": { 355 "line": 24, 356 "column": 22 357 }, 358 "end": { 359 "line": 26, 360 "column": 4 361 } 362 } 363 }, 364 "overloads": [], 365 "decorators": [], 366 "loc": { 367 "start": { 368 "line": 24, 369 "column": 3 370 }, 371 "end": { 372 "line": 26, 373 "column": 4 374 } 375 } 376 } 377 ], 378 "indexSignatures": [], 379 "loc": { 380 "start": { 381 "line": 19, 382 "column": 20 383 }, 384 "end": { 385 "line": 27, 386 "column": 2 387 } 388 } 389 }, 390 "loc": { 391 "start": { 392 "line": 19, 393 "column": 12 394 }, 395 "end": { 396 "line": 27, 397 "column": 2 398 } 399 } 400 }, 401 "loc": { 402 "start": { 403 "line": 19, 404 "column": 5 405 }, 406 "end": { 407 "line": 27, 408 "column": 2 409 } 410 } 411 } 412 ], 413 "kind": "var", 414 "loc": { 415 "start": { 416 "line": 19, 417 "column": 1 418 }, 419 "end": { 420 "line": 27, 421 "column": 3 422 } 423 } 424 }, 425 { 426 "type": "VariableDeclaration", 427 "declarations": [ 428 { 429 "type": "VariableDeclarator", 430 "id": { 431 "type": "Identifier", 432 "name": "cls2", 433 "loc": { 434 "start": { 435 "line": 29, 436 "column": 5 437 }, 438 "end": { 439 "line": 29, 440 "column": 9 441 } 442 } 443 }, 444 "init": { 445 "type": "ClassExpression", 446 "definition": { 447 "id": null, 448 "superClass": null, 449 "implements": [], 450 "constructor": { 451 "type": "MethodDefinition", 452 "key": { 453 "type": "Identifier", 454 "name": "constructor", 455 "loc": { 456 "start": { 457 "line": 1, 458 "column": 1 459 }, 460 "end": { 461 "line": 1, 462 "column": 1 463 } 464 } 465 }, 466 "kind": "constructor", 467 "static": false, 468 "optional": false, 469 "computed": false, 470 "value": { 471 "type": "FunctionExpression", 472 "function": { 473 "type": "ScriptFunction", 474 "id": null, 475 "generator": false, 476 "async": false, 477 "expression": false, 478 "params": [], 479 "body": { 480 "type": "BlockStatement", 481 "statements": [], 482 "loc": { 483 "start": { 484 "line": 1, 485 "column": 1 486 }, 487 "end": { 488 "line": 1, 489 "column": 1 490 } 491 } 492 }, 493 "loc": { 494 "start": { 495 "line": 1, 496 "column": 1 497 }, 498 "end": { 499 "line": 1, 500 "column": 1 501 } 502 } 503 }, 504 "loc": { 505 "start": { 506 "line": 1, 507 "column": 1 508 }, 509 "end": { 510 "line": 1, 511 "column": 1 512 } 513 } 514 }, 515 "overloads": [], 516 "decorators": [], 517 "loc": { 518 "start": { 519 "line": 29, 520 "column": 12 521 }, 522 "end": { 523 "line": 32, 524 "column": 2 525 } 526 } 527 }, 528 "body": [ 529 { 530 "type": "MethodDefinition", 531 "key": { 532 "type": "Identifier", 533 "name": "method", 534 "loc": { 535 "start": { 536 "line": 30, 537 "column": 3 538 }, 539 "end": { 540 "line": 30, 541 "column": 9 542 } 543 } 544 }, 545 "kind": "method", 546 "static": false, 547 "optional": false, 548 "computed": false, 549 "value": { 550 "type": "FunctionExpression", 551 "function": { 552 "type": "ScriptFunction", 553 "id": null, 554 "generator": false, 555 "async": false, 556 "expression": false, 557 "params": [], 558 "body": { 559 "type": "BlockStatement", 560 "statements": [], 561 "loc": { 562 "start": { 563 "line": 30, 564 "column": 12 565 }, 566 "end": { 567 "line": 30, 568 "column": 15 569 } 570 } 571 }, 572 "loc": { 573 "start": { 574 "line": 30, 575 "column": 9 576 }, 577 "end": { 578 "line": 30, 579 "column": 15 580 } 581 } 582 }, 583 "loc": { 584 "start": { 585 "line": 30, 586 "column": 9 587 }, 588 "end": { 589 "line": 30, 590 "column": 15 591 } 592 } 593 }, 594 "overloads": [], 595 "decorators": [], 596 "loc": { 597 "start": { 598 "line": 30, 599 "column": 3 600 }, 601 "end": { 602 "line": 30, 603 "column": 15 604 } 605 } 606 }, 607 { 608 "type": "MethodDefinition", 609 "key": { 610 "type": "Identifier", 611 "name": "staticMethod", 612 "loc": { 613 "start": { 614 "line": 31, 615 "column": 10 616 }, 617 "end": { 618 "line": 31, 619 "column": 22 620 } 621 } 622 }, 623 "kind": "method", 624 "static": true, 625 "optional": false, 626 "computed": false, 627 "value": { 628 "type": "FunctionExpression", 629 "function": { 630 "type": "ScriptFunction", 631 "id": null, 632 "generator": false, 633 "async": false, 634 "expression": false, 635 "params": [], 636 "body": { 637 "type": "BlockStatement", 638 "statements": [], 639 "loc": { 640 "start": { 641 "line": 31, 642 "column": 25 643 }, 644 "end": { 645 "line": 31, 646 "column": 28 647 } 648 } 649 }, 650 "loc": { 651 "start": { 652 "line": 31, 653 "column": 22 654 }, 655 "end": { 656 "line": 31, 657 "column": 28 658 } 659 } 660 }, 661 "loc": { 662 "start": { 663 "line": 31, 664 "column": 22 665 }, 666 "end": { 667 "line": 31, 668 "column": 28 669 } 670 } 671 }, 672 "overloads": [], 673 "decorators": [], 674 "loc": { 675 "start": { 676 "line": 31, 677 "column": 3 678 }, 679 "end": { 680 "line": 31, 681 "column": 28 682 } 683 } 684 } 685 ], 686 "indexSignatures": [], 687 "loc": { 688 "start": { 689 "line": 29, 690 "column": 18 691 }, 692 "end": { 693 "line": 32, 694 "column": 2 695 } 696 } 697 }, 698 "loc": { 699 "start": { 700 "line": 29, 701 "column": 12 702 }, 703 "end": { 704 "line": 32, 705 "column": 2 706 } 707 } 708 }, 709 "loc": { 710 "start": { 711 "line": 29, 712 "column": 5 713 }, 714 "end": { 715 "line": 32, 716 "column": 2 717 } 718 } 719 } 720 ], 721 "kind": "var", 722 "loc": { 723 "start": { 724 "line": 29, 725 "column": 1 726 }, 727 "end": { 728 "line": 32, 729 "column": 2 730 } 731 } 732 } 733 ], 734 "loc": { 735 "start": { 736 "line": 1, 737 "column": 1 738 }, 739 "end": { 740 "line": 33, 741 "column": 1 742 } 743 } 744} 745