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