1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "B", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 18, 14 "column": 7 15 }, 16 "end": { 17 "line": 18, 18 "column": 8 19 } 20 } 21 }, 22 "superClass": null, 23 "implements": [], 24 "body": [ 25 { 26 "type": "ClassProperty", 27 "key": { 28 "type": "Identifier", 29 "name": "a", 30 "decorators": [], 31 "loc": { 32 "start": { 33 "line": 19, 34 "column": 3 35 }, 36 "end": { 37 "line": 19, 38 "column": 4 39 } 40 } 41 }, 42 "accessibility": "public", 43 "static": false, 44 "readonly": false, 45 "declare": false, 46 "optional": false, 47 "computed": false, 48 "typeAnnotation": { 49 "type": "ETSTypeReference", 50 "part": { 51 "type": "ETSTypeReferencePart", 52 "name": { 53 "type": "Identifier", 54 "name": "String", 55 "decorators": [], 56 "loc": { 57 "start": { 58 "line": 19, 59 "column": 6 60 }, 61 "end": { 62 "line": 19, 63 "column": 12 64 } 65 } 66 }, 67 "loc": { 68 "start": { 69 "line": 19, 70 "column": 6 71 }, 72 "end": { 73 "line": 19, 74 "column": 13 75 } 76 } 77 }, 78 "loc": { 79 "start": { 80 "line": 19, 81 "column": 6 82 }, 83 "end": { 84 "line": 19, 85 "column": 13 86 } 87 } 88 }, 89 "definite": false, 90 "decorators": [], 91 "loc": { 92 "start": { 93 "line": 19, 94 "column": 3 95 }, 96 "end": { 97 "line": 19, 98 "column": 13 99 } 100 } 101 }, 102 { 103 "type": "MethodDefinition", 104 "key": { 105 "type": "Identifier", 106 "name": "constructor", 107 "decorators": [], 108 "loc": { 109 "start": { 110 "line": 1, 111 "column": 1 112 }, 113 "end": { 114 "line": 1, 115 "column": 1 116 } 117 } 118 }, 119 "kind": "constructor", 120 "static": false, 121 "optional": false, 122 "computed": false, 123 "value": { 124 "type": "FunctionExpression", 125 "function": { 126 "type": "ScriptFunction", 127 "id": { 128 "type": "Identifier", 129 "name": "constructor", 130 "decorators": [], 131 "loc": { 132 "start": { 133 "line": 1, 134 "column": 1 135 }, 136 "end": { 137 "line": 1, 138 "column": 1 139 } 140 } 141 }, 142 "generator": false, 143 "async": false, 144 "expression": false, 145 "params": [], 146 "body": { 147 "type": "BlockStatement", 148 "statements": [], 149 "loc": { 150 "start": { 151 "line": 1, 152 "column": 1 153 }, 154 "end": { 155 "line": 1, 156 "column": 1 157 } 158 } 159 }, 160 "loc": { 161 "start": { 162 "line": 1, 163 "column": 1 164 }, 165 "end": { 166 "line": 1, 167 "column": 1 168 } 169 } 170 }, 171 "loc": { 172 "start": { 173 "line": 1, 174 "column": 1 175 }, 176 "end": { 177 "line": 1, 178 "column": 1 179 } 180 } 181 }, 182 "overloads": [], 183 "decorators": [], 184 "loc": { 185 "start": { 186 "line": 20, 187 "column": 2 188 }, 189 "end": { 190 "line": 20, 191 "column": 2 192 } 193 } 194 } 195 ], 196 "loc": { 197 "start": { 198 "line": 18, 199 "column": 9 200 }, 201 "end": { 202 "line": 20, 203 "column": 2 204 } 205 } 206 }, 207 "loc": { 208 "start": { 209 "line": 18, 210 "column": 1 211 }, 212 "end": { 213 "line": 20, 214 "column": 2 215 } 216 } 217 }, 218 { 219 "type": "ClassDeclaration", 220 "definition": { 221 "id": { 222 "type": "Identifier", 223 "name": "A", 224 "decorators": [], 225 "loc": { 226 "start": { 227 "line": 22, 228 "column": 7 229 }, 230 "end": { 231 "line": 22, 232 "column": 8 233 } 234 } 235 }, 236 "superClass": { 237 "type": "ETSTypeReference", 238 "part": { 239 "type": "ETSTypeReferencePart", 240 "name": { 241 "type": "Identifier", 242 "name": "B", 243 "decorators": [], 244 "loc": { 245 "start": { 246 "line": 22, 247 "column": 17 248 }, 249 "end": { 250 "line": 22, 251 "column": 18 252 } 253 } 254 }, 255 "loc": { 256 "start": { 257 "line": 22, 258 "column": 17 259 }, 260 "end": { 261 "line": 22, 262 "column": 20 263 } 264 } 265 }, 266 "loc": { 267 "start": { 268 "line": 22, 269 "column": 17 270 }, 271 "end": { 272 "line": 22, 273 "column": 20 274 } 275 } 276 }, 277 "implements": [], 278 "body": [ 279 { 280 "type": "MethodDefinition", 281 "key": { 282 "type": "Identifier", 283 "name": "foo", 284 "decorators": [], 285 "loc": { 286 "start": { 287 "line": 23, 288 "column": 3 289 }, 290 "end": { 291 "line": 23, 292 "column": 6 293 } 294 } 295 }, 296 "kind": "method", 297 "accessibility": "public", 298 "static": false, 299 "optional": false, 300 "computed": false, 301 "value": { 302 "type": "FunctionExpression", 303 "function": { 304 "type": "ScriptFunction", 305 "id": { 306 "type": "Identifier", 307 "name": "foo", 308 "decorators": [], 309 "loc": { 310 "start": { 311 "line": 23, 312 "column": 3 313 }, 314 "end": { 315 "line": 23, 316 "column": 6 317 } 318 } 319 }, 320 "generator": false, 321 "async": false, 322 "expression": false, 323 "params": [], 324 "returnType": { 325 "type": "ETSPrimitiveType", 326 "loc": { 327 "start": { 328 "line": 23, 329 "column": 10 330 }, 331 "end": { 332 "line": 23, 333 "column": 14 334 } 335 } 336 }, 337 "body": { 338 "type": "BlockStatement", 339 "statements": [ 340 { 341 "type": "ExpressionStatement", 342 "expression": { 343 "type": "AssignmentExpression", 344 "operator": "=", 345 "left": { 346 "type": "Identifier", 347 "name": "a", 348 "decorators": [], 349 "loc": { 350 "start": { 351 "line": 24, 352 "column": 5 353 }, 354 "end": { 355 "line": 24, 356 "column": 6 357 } 358 } 359 }, 360 "right": { 361 "type": "NumberLiteral", 362 "value": 12, 363 "loc": { 364 "start": { 365 "line": 24, 366 "column": 9 367 }, 368 "end": { 369 "line": 24, 370 "column": 11 371 } 372 } 373 }, 374 "loc": { 375 "start": { 376 "line": 24, 377 "column": 5 378 }, 379 "end": { 380 "line": 24, 381 "column": 11 382 } 383 } 384 }, 385 "loc": { 386 "start": { 387 "line": 24, 388 "column": 5 389 }, 390 "end": { 391 "line": 24, 392 "column": 12 393 } 394 } 395 } 396 ], 397 "loc": { 398 "start": { 399 "line": 23, 400 "column": 15 401 }, 402 "end": { 403 "line": 25, 404 "column": 4 405 } 406 } 407 }, 408 "loc": { 409 "start": { 410 "line": 23, 411 "column": 6 412 }, 413 "end": { 414 "line": 25, 415 "column": 4 416 } 417 } 418 }, 419 "loc": { 420 "start": { 421 "line": 23, 422 "column": 6 423 }, 424 "end": { 425 "line": 25, 426 "column": 4 427 } 428 } 429 }, 430 "overloads": [], 431 "decorators": [], 432 "loc": { 433 "start": { 434 "line": 23, 435 "column": 3 436 }, 437 "end": { 438 "line": 25, 439 "column": 4 440 } 441 } 442 }, 443 { 444 "type": "MethodDefinition", 445 "key": { 446 "type": "Identifier", 447 "name": "constructor", 448 "decorators": [], 449 "loc": { 450 "start": { 451 "line": 1, 452 "column": 1 453 }, 454 "end": { 455 "line": 1, 456 "column": 1 457 } 458 } 459 }, 460 "kind": "constructor", 461 "static": false, 462 "optional": false, 463 "computed": false, 464 "value": { 465 "type": "FunctionExpression", 466 "function": { 467 "type": "ScriptFunction", 468 "id": { 469 "type": "Identifier", 470 "name": "constructor", 471 "decorators": [], 472 "loc": { 473 "start": { 474 "line": 1, 475 "column": 1 476 }, 477 "end": { 478 "line": 1, 479 "column": 1 480 } 481 } 482 }, 483 "generator": false, 484 "async": false, 485 "expression": false, 486 "params": [], 487 "body": { 488 "type": "BlockStatement", 489 "statements": [], 490 "loc": { 491 "start": { 492 "line": 1, 493 "column": 1 494 }, 495 "end": { 496 "line": 1, 497 "column": 1 498 } 499 } 500 }, 501 "loc": { 502 "start": { 503 "line": 1, 504 "column": 1 505 }, 506 "end": { 507 "line": 1, 508 "column": 1 509 } 510 } 511 }, 512 "loc": { 513 "start": { 514 "line": 1, 515 "column": 1 516 }, 517 "end": { 518 "line": 1, 519 "column": 1 520 } 521 } 522 }, 523 "overloads": [], 524 "decorators": [], 525 "loc": { 526 "start": { 527 "line": 26, 528 "column": 2 529 }, 530 "end": { 531 "line": 26, 532 "column": 2 533 } 534 } 535 } 536 ], 537 "loc": { 538 "start": { 539 "line": 22, 540 "column": 19 541 }, 542 "end": { 543 "line": 26, 544 "column": 2 545 } 546 } 547 }, 548 "loc": { 549 "start": { 550 "line": 22, 551 "column": 1 552 }, 553 "end": { 554 "line": 26, 555 "column": 2 556 } 557 } 558 }, 559 { 560 "type": "ClassDeclaration", 561 "definition": { 562 "id": { 563 "type": "Identifier", 564 "name": "ETSGLOBAL", 565 "decorators": [], 566 "loc": { 567 "start": { 568 "line": 1, 569 "column": 1 570 }, 571 "end": { 572 "line": 1, 573 "column": 1 574 } 575 } 576 }, 577 "superClass": null, 578 "implements": [], 579 "body": [ 580 { 581 "type": "MethodDefinition", 582 "key": { 583 "type": "Identifier", 584 "name": "main", 585 "decorators": [], 586 "loc": { 587 "start": { 588 "line": 1, 589 "column": 1 590 }, 591 "end": { 592 "line": 1, 593 "column": 1 594 } 595 } 596 }, 597 "kind": "method", 598 "accessibility": "public", 599 "static": true, 600 "optional": false, 601 "computed": false, 602 "value": { 603 "type": "FunctionExpression", 604 "function": { 605 "type": "ScriptFunction", 606 "id": { 607 "type": "Identifier", 608 "name": "main", 609 "decorators": [], 610 "loc": { 611 "start": { 612 "line": 1, 613 "column": 1 614 }, 615 "end": { 616 "line": 1, 617 "column": 1 618 } 619 } 620 }, 621 "generator": false, 622 "async": false, 623 "expression": false, 624 "params": [], 625 "body": { 626 "type": "BlockStatement", 627 "statements": [], 628 "loc": { 629 "start": { 630 "line": 1, 631 "column": 1 632 }, 633 "end": { 634 "line": 1, 635 "column": 1 636 } 637 } 638 }, 639 "loc": { 640 "start": { 641 "line": 1, 642 "column": 1 643 }, 644 "end": { 645 "line": 1, 646 "column": 1 647 } 648 } 649 }, 650 "loc": { 651 "start": { 652 "line": 1, 653 "column": 1 654 }, 655 "end": { 656 "line": 1, 657 "column": 1 658 } 659 } 660 }, 661 "overloads": [], 662 "decorators": [], 663 "loc": { 664 "start": { 665 "line": 1, 666 "column": 1 667 }, 668 "end": { 669 "line": 1, 670 "column": 1 671 } 672 } 673 }, 674 { 675 "type": "MethodDefinition", 676 "key": { 677 "type": "Identifier", 678 "name": "_$init$_", 679 "decorators": [], 680 "loc": { 681 "start": { 682 "line": 1, 683 "column": 1 684 }, 685 "end": { 686 "line": 1, 687 "column": 1 688 } 689 } 690 }, 691 "kind": "method", 692 "accessibility": "public", 693 "static": true, 694 "optional": false, 695 "computed": false, 696 "value": { 697 "type": "FunctionExpression", 698 "function": { 699 "type": "ScriptFunction", 700 "id": { 701 "type": "Identifier", 702 "name": "_$init$_", 703 "decorators": [], 704 "loc": { 705 "start": { 706 "line": 1, 707 "column": 1 708 }, 709 "end": { 710 "line": 1, 711 "column": 1 712 } 713 } 714 }, 715 "generator": false, 716 "async": false, 717 "expression": false, 718 "params": [], 719 "body": { 720 "type": "BlockStatement", 721 "statements": [ 722 { 723 "type": "ExpressionStatement", 724 "expression": { 725 "type": "AssignmentExpression", 726 "operator": "=", 727 "left": { 728 "type": "Identifier", 729 "name": "a", 730 "decorators": [], 731 "loc": { 732 "start": { 733 "line": 16, 734 "column": 5 735 }, 736 "end": { 737 "line": 16, 738 "column": 6 739 } 740 } 741 }, 742 "right": { 743 "type": "NumberLiteral", 744 "value": 1, 745 "loc": { 746 "start": { 747 "line": 16, 748 "column": 15 749 }, 750 "end": { 751 "line": 16, 752 "column": 16 753 } 754 } 755 }, 756 "loc": { 757 "start": { 758 "line": 16, 759 "column": 5 760 }, 761 "end": { 762 "line": 16, 763 "column": 16 764 } 765 } 766 }, 767 "loc": { 768 "start": { 769 "line": 16, 770 "column": 5 771 }, 772 "end": { 773 "line": 16, 774 "column": 16 775 } 776 } 777 } 778 ], 779 "loc": { 780 "start": { 781 "line": 1, 782 "column": 1 783 }, 784 "end": { 785 "line": 1, 786 "column": 1 787 } 788 } 789 }, 790 "loc": { 791 "start": { 792 "line": 1, 793 "column": 1 794 }, 795 "end": { 796 "line": 1, 797 "column": 1 798 } 799 } 800 }, 801 "loc": { 802 "start": { 803 "line": 1, 804 "column": 1 805 }, 806 "end": { 807 "line": 1, 808 "column": 1 809 } 810 } 811 }, 812 "overloads": [], 813 "decorators": [], 814 "loc": { 815 "start": { 816 "line": 1, 817 "column": 1 818 }, 819 "end": { 820 "line": 1, 821 "column": 1 822 } 823 } 824 }, 825 { 826 "type": "ClassProperty", 827 "key": { 828 "type": "Identifier", 829 "name": "a", 830 "decorators": [], 831 "loc": { 832 "start": { 833 "line": 16, 834 "column": 5 835 }, 836 "end": { 837 "line": 16, 838 "column": 6 839 } 840 } 841 }, 842 "accessibility": "public", 843 "static": true, 844 "readonly": false, 845 "declare": false, 846 "optional": false, 847 "computed": false, 848 "typeAnnotation": { 849 "type": "ETSPrimitiveType", 850 "loc": { 851 "start": { 852 "line": 16, 853 "column": 8 854 }, 855 "end": { 856 "line": 16, 857 "column": 11 858 } 859 } 860 }, 861 "definite": false, 862 "decorators": [], 863 "loc": { 864 "start": { 865 "line": 16, 866 "column": 5 867 }, 868 "end": { 869 "line": 16, 870 "column": 16 871 } 872 } 873 } 874 ], 875 "loc": { 876 "start": { 877 "line": 1, 878 "column": 1 879 }, 880 "end": { 881 "line": 1, 882 "column": 1 883 } 884 } 885 }, 886 "loc": { 887 "start": { 888 "line": 1, 889 "column": 1 890 }, 891 "end": { 892 "line": 1, 893 "column": 1 894 } 895 } 896 } 897 ], 898 "loc": { 899 "start": { 900 "line": 1, 901 "column": 1 902 }, 903 "end": { 904 "line": 27, 905 "column": 1 906 } 907 } 908} 909