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": 7 15 }, 16 "end": { 17 "line": 16, 18 "column": 8 19 } 20 } 21 }, 22 "superClass": null, 23 "implements": [], 24 "body": [ 25 { 26 "type": "ClassProperty", 27 "key": { 28 "type": "Identifier", 29 "name": "status", 30 "decorators": [], 31 "loc": { 32 "start": { 33 "line": 17, 34 "column": 5 35 }, 36 "end": { 37 "line": 17, 38 "column": 11 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": 17, 59 "column": 13 60 }, 61 "end": { 62 "line": 17, 63 "column": 19 64 } 65 } 66 }, 67 "loc": { 68 "start": { 69 "line": 17, 70 "column": 13 71 }, 72 "end": { 73 "line": 17, 74 "column": 20 75 } 76 } 77 }, 78 "loc": { 79 "start": { 80 "line": 17, 81 "column": 13 82 }, 83 "end": { 84 "line": 17, 85 "column": 20 86 } 87 } 88 }, 89 "definite": false, 90 "decorators": [], 91 "loc": { 92 "start": { 93 "line": 17, 94 "column": 5 95 }, 96 "end": { 97 "line": 17, 98 "column": 20 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": 18, 187 "column": 2 188 }, 189 "end": { 190 "line": 18, 191 "column": 2 192 } 193 } 194 } 195 ], 196 "loc": { 197 "start": { 198 "line": 16, 199 "column": 9 200 }, 201 "end": { 202 "line": 18, 203 "column": 2 204 } 205 } 206 }, 207 "loc": { 208 "start": { 209 "line": 16, 210 "column": 1 211 }, 212 "end": { 213 "line": 18, 214 "column": 2 215 } 216 } 217 }, 218 { 219 "type": "ClassDeclaration", 220 "definition": { 221 "id": { 222 "type": "Identifier", 223 "name": "B", 224 "decorators": [], 225 "loc": { 226 "start": { 227 "line": 20, 228 "column": 7 229 }, 230 "end": { 231 "line": 20, 232 "column": 8 233 } 234 } 235 }, 236 "superClass": null, 237 "implements": [], 238 "body": [ 239 { 240 "type": "ClassProperty", 241 "key": { 242 "type": "Identifier", 243 "name": "status", 244 "decorators": [], 245 "loc": { 246 "start": { 247 "line": 21, 248 "column": 5 249 }, 250 "end": { 251 "line": 21, 252 "column": 11 253 } 254 } 255 }, 256 "accessibility": "public", 257 "static": false, 258 "readonly": false, 259 "declare": false, 260 "optional": false, 261 "computed": false, 262 "typeAnnotation": { 263 "type": "ETSTypeReference", 264 "part": { 265 "type": "ETSTypeReferencePart", 266 "name": { 267 "type": "Identifier", 268 "name": "string", 269 "decorators": [], 270 "loc": { 271 "start": { 272 "line": 21, 273 "column": 13 274 }, 275 "end": { 276 "line": 21, 277 "column": 19 278 } 279 } 280 }, 281 "loc": { 282 "start": { 283 "line": 21, 284 "column": 13 285 }, 286 "end": { 287 "line": 21, 288 "column": 20 289 } 290 } 291 }, 292 "loc": { 293 "start": { 294 "line": 21, 295 "column": 13 296 }, 297 "end": { 298 "line": 21, 299 "column": 20 300 } 301 } 302 }, 303 "definite": false, 304 "decorators": [], 305 "loc": { 306 "start": { 307 "line": 21, 308 "column": 5 309 }, 310 "end": { 311 "line": 21, 312 "column": 20 313 } 314 } 315 }, 316 { 317 "type": "MethodDefinition", 318 "key": { 319 "type": "Identifier", 320 "name": "constructor", 321 "decorators": [], 322 "loc": { 323 "start": { 324 "line": 1, 325 "column": 1 326 }, 327 "end": { 328 "line": 1, 329 "column": 1 330 } 331 } 332 }, 333 "kind": "constructor", 334 "static": false, 335 "optional": false, 336 "computed": false, 337 "value": { 338 "type": "FunctionExpression", 339 "function": { 340 "type": "ScriptFunction", 341 "id": { 342 "type": "Identifier", 343 "name": "constructor", 344 "decorators": [], 345 "loc": { 346 "start": { 347 "line": 1, 348 "column": 1 349 }, 350 "end": { 351 "line": 1, 352 "column": 1 353 } 354 } 355 }, 356 "generator": false, 357 "async": false, 358 "expression": false, 359 "params": [], 360 "body": { 361 "type": "BlockStatement", 362 "statements": [], 363 "loc": { 364 "start": { 365 "line": 1, 366 "column": 1 367 }, 368 "end": { 369 "line": 1, 370 "column": 1 371 } 372 } 373 }, 374 "loc": { 375 "start": { 376 "line": 1, 377 "column": 1 378 }, 379 "end": { 380 "line": 1, 381 "column": 1 382 } 383 } 384 }, 385 "loc": { 386 "start": { 387 "line": 1, 388 "column": 1 389 }, 390 "end": { 391 "line": 1, 392 "column": 1 393 } 394 } 395 }, 396 "overloads": [], 397 "decorators": [], 398 "loc": { 399 "start": { 400 "line": 22, 401 "column": 2 402 }, 403 "end": { 404 "line": 22, 405 "column": 2 406 } 407 } 408 } 409 ], 410 "loc": { 411 "start": { 412 "line": 20, 413 "column": 9 414 }, 415 "end": { 416 "line": 22, 417 "column": 2 418 } 419 } 420 }, 421 "loc": { 422 "start": { 423 "line": 20, 424 "column": 1 425 }, 426 "end": { 427 "line": 22, 428 "column": 2 429 } 430 } 431 }, 432 { 433 "type": "TSTypeAliasDeclaration", 434 "id": { 435 "type": "Identifier", 436 "name": "Union", 437 "decorators": [], 438 "loc": { 439 "start": { 440 "line": 24, 441 "column": 6 442 }, 443 "end": { 444 "line": 24, 445 "column": 11 446 } 447 } 448 }, 449 "typeAnnotation": { 450 "type": "ETSUnionType", 451 "types": [ 452 { 453 "type": "ETSTypeReference", 454 "part": { 455 "type": "ETSTypeReferencePart", 456 "name": { 457 "type": "Identifier", 458 "name": "A", 459 "decorators": [], 460 "loc": { 461 "start": { 462 "line": 24, 463 "column": 14 464 }, 465 "end": { 466 "line": 24, 467 "column": 15 468 } 469 } 470 }, 471 "loc": { 472 "start": { 473 "line": 24, 474 "column": 14 475 }, 476 "end": { 477 "line": 24, 478 "column": 17 479 } 480 } 481 }, 482 "loc": { 483 "start": { 484 "line": 24, 485 "column": 14 486 }, 487 "end": { 488 "line": 24, 489 "column": 17 490 } 491 } 492 }, 493 { 494 "type": "ETSTypeReference", 495 "part": { 496 "type": "ETSTypeReferencePart", 497 "name": { 498 "type": "Identifier", 499 "name": "B", 500 "decorators": [], 501 "loc": { 502 "start": { 503 "line": 24, 504 "column": 18 505 }, 506 "end": { 507 "line": 24, 508 "column": 19 509 } 510 } 511 }, 512 "loc": { 513 "start": { 514 "line": 24, 515 "column": 18 516 }, 517 "end": { 518 "line": 24, 519 "column": 20 520 } 521 } 522 }, 523 "loc": { 524 "start": { 525 "line": 24, 526 "column": 18 527 }, 528 "end": { 529 "line": 24, 530 "column": 20 531 } 532 } 533 } 534 ], 535 "loc": { 536 "start": { 537 "line": 24, 538 "column": 14 539 }, 540 "end": { 541 "line": 24, 542 "column": 20 543 } 544 } 545 }, 546 "loc": { 547 "start": { 548 "line": 24, 549 "column": 1 550 }, 551 "end": { 552 "line": 24, 553 "column": 20 554 } 555 } 556 }, 557 { 558 "type": "ClassDeclaration", 559 "definition": { 560 "id": { 561 "type": "Identifier", 562 "name": "ETSGLOBAL", 563 "decorators": [], 564 "loc": { 565 "start": { 566 "line": 1, 567 "column": 1 568 }, 569 "end": { 570 "line": 1, 571 "column": 1 572 } 573 } 574 }, 575 "superClass": null, 576 "implements": [], 577 "body": [ 578 { 579 "type": "MethodDefinition", 580 "key": { 581 "type": "Identifier", 582 "name": "_$init$_", 583 "decorators": [], 584 "loc": { 585 "start": { 586 "line": 1, 587 "column": 1 588 }, 589 "end": { 590 "line": 1, 591 "column": 1 592 } 593 } 594 }, 595 "kind": "method", 596 "accessibility": "public", 597 "static": true, 598 "optional": false, 599 "computed": false, 600 "value": { 601 "type": "FunctionExpression", 602 "function": { 603 "type": "ScriptFunction", 604 "id": { 605 "type": "Identifier", 606 "name": "_$init$_", 607 "decorators": [], 608 "loc": { 609 "start": { 610 "line": 1, 611 "column": 1 612 }, 613 "end": { 614 "line": 1, 615 "column": 1 616 } 617 } 618 }, 619 "generator": false, 620 "async": false, 621 "expression": false, 622 "params": [], 623 "body": { 624 "type": "BlockStatement", 625 "statements": [], 626 "loc": { 627 "start": { 628 "line": 1, 629 "column": 1 630 }, 631 "end": { 632 "line": 1, 633 "column": 1 634 } 635 } 636 }, 637 "loc": { 638 "start": { 639 "line": 1, 640 "column": 1 641 }, 642 "end": { 643 "line": 1, 644 "column": 1 645 } 646 } 647 }, 648 "loc": { 649 "start": { 650 "line": 1, 651 "column": 1 652 }, 653 "end": { 654 "line": 1, 655 "column": 1 656 } 657 } 658 }, 659 "overloads": [], 660 "decorators": [], 661 "loc": { 662 "start": { 663 "line": 1, 664 "column": 1 665 }, 666 "end": { 667 "line": 1, 668 "column": 1 669 } 670 } 671 }, 672 { 673 "type": "MethodDefinition", 674 "key": { 675 "type": "Identifier", 676 "name": "testPromiseAllSettled", 677 "decorators": [], 678 "loc": { 679 "start": { 680 "line": 26, 681 "column": 10 682 }, 683 "end": { 684 "line": 26, 685 "column": 31 686 } 687 } 688 }, 689 "kind": "method", 690 "accessibility": "public", 691 "static": true, 692 "optional": false, 693 "computed": false, 694 "value": { 695 "type": "FunctionExpression", 696 "function": { 697 "type": "ScriptFunction", 698 "id": { 699 "type": "Identifier", 700 "name": "testPromiseAllSettled", 701 "decorators": [], 702 "loc": { 703 "start": { 704 "line": 26, 705 "column": 10 706 }, 707 "end": { 708 "line": 26, 709 "column": 31 710 } 711 } 712 }, 713 "generator": false, 714 "async": false, 715 "expression": false, 716 "params": [], 717 "returnType": { 718 "type": "ETSPrimitiveType", 719 "loc": { 720 "start": { 721 "line": 26, 722 "column": 36 723 }, 724 "end": { 725 "line": 26, 726 "column": 40 727 } 728 } 729 }, 730 "body": { 731 "type": "BlockStatement", 732 "statements": [ 733 { 734 "type": "VariableDeclaration", 735 "declarations": [ 736 { 737 "type": "VariableDeclarator", 738 "id": { 739 "type": "Identifier", 740 "name": "fn", 741 "decorators": [], 742 "loc": { 743 "start": { 744 "line": 27, 745 "column": 9 746 }, 747 "end": { 748 "line": 27, 749 "column": 11 750 } 751 } 752 }, 753 "init": { 754 "type": "ArrowFunctionExpression", 755 "function": { 756 "type": "ScriptFunction", 757 "id": null, 758 "generator": false, 759 "async": false, 760 "expression": false, 761 "params": [ 762 { 763 "type": "ETSParameterExpression", 764 "name": { 765 "type": "Identifier", 766 "name": "value", 767 "typeAnnotation": { 768 "type": "ETSTypeReference", 769 "part": { 770 "type": "ETSTypeReferencePart", 771 "name": { 772 "type": "Identifier", 773 "name": "Union", 774 "decorators": [], 775 "loc": { 776 "start": { 777 "line": 27, 778 "column": 23 779 }, 780 "end": { 781 "line": 27, 782 "column": 28 783 } 784 } 785 }, 786 "loc": { 787 "start": { 788 "line": 27, 789 "column": 23 790 }, 791 "end": { 792 "line": 27, 793 "column": 29 794 } 795 } 796 }, 797 "loc": { 798 "start": { 799 "line": 27, 800 "column": 23 801 }, 802 "end": { 803 "line": 27, 804 "column": 29 805 } 806 } 807 }, 808 "decorators": [], 809 "loc": { 810 "start": { 811 "line": 27, 812 "column": 15 813 }, 814 "end": { 815 "line": 27, 816 "column": 29 817 } 818 } 819 }, 820 "loc": { 821 "start": { 822 "line": 27, 823 "column": 15 824 }, 825 "end": { 826 "line": 27, 827 "column": 29 828 } 829 } 830 } 831 ], 832 "returnType": { 833 "type": "ETSTypeReference", 834 "part": { 835 "type": "ETSTypeReferencePart", 836 "name": { 837 "type": "Identifier", 838 "name": "string", 839 "decorators": [], 840 "loc": { 841 "start": { 842 "line": 27, 843 "column": 32 844 }, 845 "end": { 846 "line": 27, 847 "column": 38 848 } 849 } 850 }, 851 "loc": { 852 "start": { 853 "line": 27, 854 "column": 32 855 }, 856 "end": { 857 "line": 27, 858 "column": 41 859 } 860 } 861 }, 862 "loc": { 863 "start": { 864 "line": 27, 865 "column": 32 866 }, 867 "end": { 868 "line": 27, 869 "column": 41 870 } 871 } 872 }, 873 "body": { 874 "type": "BlockStatement", 875 "statements": [ 876 { 877 "type": "ReturnStatement", 878 "argument": { 879 "type": "MemberExpression", 880 "object": { 881 "type": "Identifier", 882 "name": "value", 883 "decorators": [], 884 "loc": { 885 "start": { 886 "line": 28, 887 "column": 16 888 }, 889 "end": { 890 "line": 28, 891 "column": 21 892 } 893 } 894 }, 895 "property": { 896 "type": "Identifier", 897 "name": "status", 898 "decorators": [], 899 "loc": { 900 "start": { 901 "line": 28, 902 "column": 22 903 }, 904 "end": { 905 "line": 28, 906 "column": 28 907 } 908 } 909 }, 910 "computed": false, 911 "optional": false, 912 "loc": { 913 "start": { 914 "line": 28, 915 "column": 16 916 }, 917 "end": { 918 "line": 28, 919 "column": 28 920 } 921 } 922 }, 923 "loc": { 924 "start": { 925 "line": 28, 926 "column": 9 927 }, 928 "end": { 929 "line": 28, 930 "column": 29 931 } 932 } 933 } 934 ], 935 "loc": { 936 "start": { 937 "line": 27, 938 "column": 42 939 }, 940 "end": { 941 "line": 29, 942 "column": 6 943 } 944 } 945 }, 946 "loc": { 947 "start": { 948 "line": 27, 949 "column": 14 950 }, 951 "end": { 952 "line": 29, 953 "column": 6 954 } 955 } 956 }, 957 "loc": { 958 "start": { 959 "line": 27, 960 "column": 14 961 }, 962 "end": { 963 "line": 29, 964 "column": 6 965 } 966 } 967 }, 968 "loc": { 969 "start": { 970 "line": 27, 971 "column": 9 972 }, 973 "end": { 974 "line": 29, 975 "column": 6 976 } 977 } 978 } 979 ], 980 "kind": "let", 981 "loc": { 982 "start": { 983 "line": 27, 984 "column": 5 985 }, 986 "end": { 987 "line": 29, 988 "column": 7 989 } 990 } 991 } 992 ], 993 "loc": { 994 "start": { 995 "line": 26, 996 "column": 41 997 }, 998 "end": { 999 "line": 30, 1000 "column": 2 1001 } 1002 } 1003 }, 1004 "loc": { 1005 "start": { 1006 "line": 26, 1007 "column": 31 1008 }, 1009 "end": { 1010 "line": 30, 1011 "column": 2 1012 } 1013 } 1014 }, 1015 "loc": { 1016 "start": { 1017 "line": 26, 1018 "column": 31 1019 }, 1020 "end": { 1021 "line": 30, 1022 "column": 2 1023 } 1024 } 1025 }, 1026 "overloads": [], 1027 "decorators": [], 1028 "loc": { 1029 "start": { 1030 "line": 26, 1031 "column": 1 1032 }, 1033 "end": { 1034 "line": 30, 1035 "column": 2 1036 } 1037 } 1038 } 1039 ], 1040 "loc": { 1041 "start": { 1042 "line": 1, 1043 "column": 1 1044 }, 1045 "end": { 1046 "line": 1, 1047 "column": 1 1048 } 1049 } 1050 }, 1051 "loc": { 1052 "start": { 1053 "line": 1, 1054 "column": 1 1055 }, 1056 "end": { 1057 "line": 1, 1058 "column": 1 1059 } 1060 } 1061 } 1062 ], 1063 "loc": { 1064 "start": { 1065 "line": 1, 1066 "column": 1 1067 }, 1068 "end": { 1069 "line": 31, 1070 "column": 1 1071 } 1072 } 1073} 1074