1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "Test", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 16, 14 "column": 7, 15 "program": "async_function.ets" 16 }, 17 "end": { 18 "line": 16, 19 "column": 11, 20 "program": "async_function.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "bar", 32 "decorators": [], 33 "loc": { 34 "start": { 35 "line": 17, 36 "column": 18, 37 "program": "async_function.ets" 38 }, 39 "end": { 40 "line": 17, 41 "column": 21, 42 "program": "async_function.ets" 43 } 44 } 45 }, 46 "kind": "method", 47 "accessibility": "public", 48 "static": false, 49 "optional": false, 50 "computed": false, 51 "value": { 52 "type": "FunctionExpression", 53 "function": { 54 "type": "ScriptFunction", 55 "id": { 56 "type": "Identifier", 57 "name": "bar", 58 "decorators": [], 59 "loc": { 60 "start": { 61 "line": 17, 62 "column": 18, 63 "program": "async_function.ets" 64 }, 65 "end": { 66 "line": 17, 67 "column": 21, 68 "program": "async_function.ets" 69 } 70 } 71 }, 72 "generator": false, 73 "async": true, 74 "expression": false, 75 "params": [], 76 "returnType": { 77 "type": "ETSTypeReference", 78 "part": { 79 "type": "ETSTypeReferencePart", 80 "name": { 81 "type": "Identifier", 82 "name": "Promise", 83 "decorators": [], 84 "loc": { 85 "start": { 86 "line": 17, 87 "column": 25, 88 "program": "async_function.ets" 89 }, 90 "end": { 91 "line": 17, 92 "column": 32, 93 "program": "async_function.ets" 94 } 95 } 96 }, 97 "typeParams": { 98 "type": "TSTypeParameterInstantiation", 99 "params": [ 100 { 101 "type": "ETSUnionType", 102 "types": [ 103 { 104 "type": "ETSTypeReference", 105 "part": { 106 "type": "ETSTypeReferencePart", 107 "name": { 108 "type": "Identifier", 109 "name": "Object", 110 "decorators": [], 111 "loc": { 112 "start": { 113 "line": 17, 114 "column": 33, 115 "program": "async_function.ets" 116 }, 117 "end": { 118 "line": 17, 119 "column": 39, 120 "program": "async_function.ets" 121 } 122 } 123 }, 124 "loc": { 125 "start": { 126 "line": 17, 127 "column": 33, 128 "program": "async_function.ets" 129 }, 130 "end": { 131 "line": 17, 132 "column": 41, 133 "program": "async_function.ets" 134 } 135 } 136 }, 137 "loc": { 138 "start": { 139 "line": 17, 140 "column": 33, 141 "program": "async_function.ets" 142 }, 143 "end": { 144 "line": 17, 145 "column": 41, 146 "program": "async_function.ets" 147 } 148 } 149 }, 150 { 151 "type": "ETSNullType", 152 "loc": { 153 "start": { 154 "line": 17, 155 "column": 42, 156 "program": "async_function.ets" 157 }, 158 "end": { 159 "line": 17, 160 "column": 46, 161 "program": "async_function.ets" 162 } 163 } 164 } 165 ], 166 "loc": { 167 "start": { 168 "line": 17, 169 "column": 33, 170 "program": "async_function.ets" 171 }, 172 "end": { 173 "line": 17, 174 "column": 46, 175 "program": "async_function.ets" 176 } 177 } 178 } 179 ], 180 "loc": { 181 "start": { 182 "line": 17, 183 "column": 32, 184 "program": "async_function.ets" 185 }, 186 "end": { 187 "line": 17, 188 "column": 47, 189 "program": "async_function.ets" 190 } 191 } 192 }, 193 "loc": { 194 "start": { 195 "line": 17, 196 "column": 25, 197 "program": "async_function.ets" 198 }, 199 "end": { 200 "line": 17, 201 "column": 49, 202 "program": "async_function.ets" 203 } 204 } 205 }, 206 "loc": { 207 "start": { 208 "line": 17, 209 "column": 25, 210 "program": "async_function.ets" 211 }, 212 "end": { 213 "line": 17, 214 "column": 49, 215 "program": "async_function.ets" 216 } 217 } 218 }, 219 "body": { 220 "type": "BlockStatement", 221 "statements": [ 222 { 223 "type": "ReturnStatement", 224 "argument": { 225 "type": "NullLiteral", 226 "value": null, 227 "loc": { 228 "start": { 229 "line": 17, 230 "column": 57, 231 "program": "async_function.ets" 232 }, 233 "end": { 234 "line": 17, 235 "column": 61, 236 "program": "async_function.ets" 237 } 238 } 239 }, 240 "loc": { 241 "start": { 242 "line": 17, 243 "column": 50, 244 "program": "async_function.ets" 245 }, 246 "end": { 247 "line": 17, 248 "column": 62, 249 "program": "async_function.ets" 250 } 251 } 252 } 253 ], 254 "loc": { 255 "start": { 256 "line": 17, 257 "column": 48, 258 "program": "async_function.ets" 259 }, 260 "end": { 261 "line": 17, 262 "column": 64, 263 "program": "async_function.ets" 264 } 265 } 266 }, 267 "loc": { 268 "start": { 269 "line": 17, 270 "column": 21, 271 "program": "async_function.ets" 272 }, 273 "end": { 274 "line": 17, 275 "column": 64, 276 "program": "async_function.ets" 277 } 278 } 279 }, 280 "loc": { 281 "start": { 282 "line": 17, 283 "column": 21, 284 "program": "async_function.ets" 285 }, 286 "end": { 287 "line": 17, 288 "column": 64, 289 "program": "async_function.ets" 290 } 291 } 292 }, 293 "overloads": [], 294 "decorators": [], 295 "loc": { 296 "start": { 297 "line": 17, 298 "column": 5, 299 "program": "async_function.ets" 300 }, 301 "end": { 302 "line": 17, 303 "column": 64, 304 "program": "async_function.ets" 305 } 306 } 307 }, 308 { 309 "type": "MethodDefinition", 310 "key": { 311 "type": "Identifier", 312 "name": "constructor", 313 "decorators": [], 314 "loc": { 315 "start": { 316 "line": 16, 317 "column": 13, 318 "program": "async_function.ets" 319 }, 320 "end": { 321 "line": 16, 322 "column": 13, 323 "program": "async_function.ets" 324 } 325 } 326 }, 327 "kind": "constructor", 328 "static": false, 329 "optional": false, 330 "computed": false, 331 "value": { 332 "type": "FunctionExpression", 333 "function": { 334 "type": "ScriptFunction", 335 "id": { 336 "type": "Identifier", 337 "name": "constructor", 338 "decorators": [], 339 "loc": { 340 "start": { 341 "line": 16, 342 "column": 13, 343 "program": "async_function.ets" 344 }, 345 "end": { 346 "line": 16, 347 "column": 13, 348 "program": "async_function.ets" 349 } 350 } 351 }, 352 "generator": false, 353 "async": false, 354 "expression": false, 355 "params": [], 356 "body": { 357 "type": "BlockStatement", 358 "statements": [], 359 "loc": { 360 "start": { 361 "line": 16, 362 "column": 13, 363 "program": "async_function.ets" 364 }, 365 "end": { 366 "line": 16, 367 "column": 13, 368 "program": "async_function.ets" 369 } 370 } 371 }, 372 "loc": { 373 "start": { 374 "line": 16, 375 "column": 13, 376 "program": "async_function.ets" 377 }, 378 "end": { 379 "line": 16, 380 "column": 13, 381 "program": "async_function.ets" 382 } 383 } 384 }, 385 "loc": { 386 "start": { 387 "line": 16, 388 "column": 13, 389 "program": "async_function.ets" 390 }, 391 "end": { 392 "line": 16, 393 "column": 13, 394 "program": "async_function.ets" 395 } 396 } 397 }, 398 "overloads": [], 399 "decorators": [], 400 "loc": { 401 "start": { 402 "line": 1, 403 "column": 1, 404 "program": null 405 }, 406 "end": { 407 "line": 1, 408 "column": 1, 409 "program": null 410 } 411 } 412 } 413 ], 414 "loc": { 415 "start": { 416 "line": 16, 417 "column": 12, 418 "program": "async_function.ets" 419 }, 420 "end": { 421 "line": 20, 422 "column": 6, 423 "program": "async_function.ets" 424 } 425 } 426 }, 427 "loc": { 428 "start": { 429 "line": 16, 430 "column": 1, 431 "program": "async_function.ets" 432 }, 433 "end": { 434 "line": 20, 435 "column": 6, 436 "program": "async_function.ets" 437 } 438 } 439 }, 440 { 441 "type": "ClassDeclaration", 442 "definition": { 443 "id": { 444 "type": "Identifier", 445 "name": "ETSGLOBAL", 446 "decorators": [], 447 "loc": { 448 "start": { 449 "line": 1, 450 "column": 1, 451 "program": "async_function.ets" 452 }, 453 "end": { 454 "line": 1, 455 "column": 1, 456 "program": "async_function.ets" 457 } 458 } 459 }, 460 "superClass": null, 461 "implements": [], 462 "body": [ 463 { 464 "type": "MethodDefinition", 465 "key": { 466 "type": "Identifier", 467 "name": "main", 468 "decorators": [], 469 "loc": { 470 "start": { 471 "line": 1, 472 "column": 1, 473 "program": null 474 }, 475 "end": { 476 "line": 1, 477 "column": 1, 478 "program": null 479 } 480 } 481 }, 482 "kind": "method", 483 "accessibility": "public", 484 "static": true, 485 "optional": false, 486 "computed": false, 487 "value": { 488 "type": "FunctionExpression", 489 "function": { 490 "type": "ScriptFunction", 491 "id": { 492 "type": "Identifier", 493 "name": "main", 494 "decorators": [], 495 "loc": { 496 "start": { 497 "line": 1, 498 "column": 1, 499 "program": null 500 }, 501 "end": { 502 "line": 1, 503 "column": 1, 504 "program": null 505 } 506 } 507 }, 508 "generator": false, 509 "async": false, 510 "expression": false, 511 "params": [], 512 "body": { 513 "type": "BlockStatement", 514 "statements": [], 515 "loc": { 516 "start": { 517 "line": 1, 518 "column": 1, 519 "program": null 520 }, 521 "end": { 522 "line": 1, 523 "column": 1, 524 "program": null 525 } 526 } 527 }, 528 "loc": { 529 "start": { 530 "line": 1, 531 "column": 1, 532 "program": null 533 }, 534 "end": { 535 "line": 1, 536 "column": 1, 537 "program": null 538 } 539 } 540 }, 541 "loc": { 542 "start": { 543 "line": 1, 544 "column": 1, 545 "program": null 546 }, 547 "end": { 548 "line": 1, 549 "column": 1, 550 "program": null 551 } 552 } 553 }, 554 "overloads": [], 555 "decorators": [], 556 "loc": { 557 "start": { 558 "line": 1, 559 "column": 1, 560 "program": "async_function.ets" 561 }, 562 "end": { 563 "line": 1, 564 "column": 1, 565 "program": "async_function.ets" 566 } 567 } 568 }, 569 { 570 "type": "MethodDefinition", 571 "key": { 572 "type": "Identifier", 573 "name": "_$init$_", 574 "decorators": [], 575 "loc": { 576 "start": { 577 "line": 1, 578 "column": 1, 579 "program": null 580 }, 581 "end": { 582 "line": 1, 583 "column": 1, 584 "program": null 585 } 586 } 587 }, 588 "kind": "method", 589 "accessibility": "public", 590 "static": true, 591 "optional": false, 592 "computed": false, 593 "value": { 594 "type": "FunctionExpression", 595 "function": { 596 "type": "ScriptFunction", 597 "id": { 598 "type": "Identifier", 599 "name": "_$init$_", 600 "decorators": [], 601 "loc": { 602 "start": { 603 "line": 1, 604 "column": 1, 605 "program": null 606 }, 607 "end": { 608 "line": 1, 609 "column": 1, 610 "program": null 611 } 612 } 613 }, 614 "generator": false, 615 "async": false, 616 "expression": false, 617 "params": [], 618 "body": { 619 "type": "BlockStatement", 620 "statements": [ 621 { 622 "type": "ExpressionStatement", 623 "expression": { 624 "type": "AssignmentExpression", 625 "operator": "=", 626 "left": { 627 "type": "Identifier", 628 "name": "lambda", 629 "decorators": [], 630 "loc": { 631 "start": { 632 "line": 22, 633 "column": 5, 634 "program": "async_function.ets" 635 }, 636 "end": { 637 "line": 22, 638 "column": 11, 639 "program": "async_function.ets" 640 } 641 } 642 }, 643 "right": { 644 "type": "ArrowFunctionExpression", 645 "function": { 646 "type": "ScriptFunction", 647 "id": null, 648 "generator": false, 649 "async": true, 650 "expression": false, 651 "params": [], 652 "returnType": { 653 "type": "ETSTypeReference", 654 "part": { 655 "type": "ETSTypeReferencePart", 656 "name": { 657 "type": "Identifier", 658 "name": "Promise", 659 "decorators": [], 660 "loc": { 661 "start": { 662 "line": 22, 663 "column": 54, 664 "program": "async_function.ets" 665 }, 666 "end": { 667 "line": 22, 668 "column": 61, 669 "program": "async_function.ets" 670 } 671 } 672 }, 673 "typeParams": { 674 "type": "TSTypeParameterInstantiation", 675 "params": [ 676 { 677 "type": "ETSUnionType", 678 "types": [ 679 { 680 "type": "ETSTypeReference", 681 "part": { 682 "type": "ETSTypeReferencePart", 683 "name": { 684 "type": "Identifier", 685 "name": "Object", 686 "decorators": [], 687 "loc": { 688 "start": { 689 "line": 22, 690 "column": 62, 691 "program": "async_function.ets" 692 }, 693 "end": { 694 "line": 22, 695 "column": 68, 696 "program": "async_function.ets" 697 } 698 } 699 }, 700 "loc": { 701 "start": { 702 "line": 22, 703 "column": 62, 704 "program": "async_function.ets" 705 }, 706 "end": { 707 "line": 22, 708 "column": 70, 709 "program": "async_function.ets" 710 } 711 } 712 }, 713 "loc": { 714 "start": { 715 "line": 22, 716 "column": 62, 717 "program": "async_function.ets" 718 }, 719 "end": { 720 "line": 22, 721 "column": 70, 722 "program": "async_function.ets" 723 } 724 } 725 }, 726 { 727 "type": "ETSNullType", 728 "loc": { 729 "start": { 730 "line": 22, 731 "column": 71, 732 "program": "async_function.ets" 733 }, 734 "end": { 735 "line": 22, 736 "column": 75, 737 "program": "async_function.ets" 738 } 739 } 740 } 741 ], 742 "loc": { 743 "start": { 744 "line": 22, 745 "column": 62, 746 "program": "async_function.ets" 747 }, 748 "end": { 749 "line": 22, 750 "column": 75, 751 "program": "async_function.ets" 752 } 753 } 754 } 755 ], 756 "loc": { 757 "start": { 758 "line": 22, 759 "column": 61, 760 "program": "async_function.ets" 761 }, 762 "end": { 763 "line": 22, 764 "column": 76, 765 "program": "async_function.ets" 766 } 767 } 768 }, 769 "loc": { 770 "start": { 771 "line": 22, 772 "column": 54, 773 "program": "async_function.ets" 774 }, 775 "end": { 776 "line": 22, 777 "column": 79, 778 "program": "async_function.ets" 779 } 780 } 781 }, 782 "loc": { 783 "start": { 784 "line": 22, 785 "column": 54, 786 "program": "async_function.ets" 787 }, 788 "end": { 789 "line": 22, 790 "column": 79, 791 "program": "async_function.ets" 792 } 793 } 794 }, 795 "body": { 796 "type": "BlockStatement", 797 "statements": [ 798 { 799 "type": "ReturnStatement", 800 "argument": { 801 "type": "NullLiteral", 802 "value": null, 803 "loc": { 804 "start": { 805 "line": 22, 806 "column": 89, 807 "program": "async_function.ets" 808 }, 809 "end": { 810 "line": 22, 811 "column": 93, 812 "program": "async_function.ets" 813 } 814 } 815 }, 816 "loc": { 817 "start": { 818 "line": 22, 819 "column": 82, 820 "program": "async_function.ets" 821 }, 822 "end": { 823 "line": 22, 824 "column": 94, 825 "program": "async_function.ets" 826 } 827 } 828 } 829 ], 830 "loc": { 831 "start": { 832 "line": 22, 833 "column": 80, 834 "program": "async_function.ets" 835 }, 836 "end": { 837 "line": 22, 838 "column": 96, 839 "program": "async_function.ets" 840 } 841 } 842 }, 843 "loc": { 844 "start": { 845 "line": 22, 846 "column": 50, 847 "program": "async_function.ets" 848 }, 849 "end": { 850 "line": 22, 851 "column": 96, 852 "program": "async_function.ets" 853 } 854 } 855 }, 856 "loc": { 857 "start": { 858 "line": 22, 859 "column": 50, 860 "program": "async_function.ets" 861 }, 862 "end": { 863 "line": 22, 864 "column": 96, 865 "program": "async_function.ets" 866 } 867 } 868 }, 869 "loc": { 870 "start": { 871 "line": 22, 872 "column": 5, 873 "program": "async_function.ets" 874 }, 875 "end": { 876 "line": 22, 877 "column": 96, 878 "program": "async_function.ets" 879 } 880 } 881 }, 882 "loc": { 883 "start": { 884 "line": 22, 885 "column": 5, 886 "program": "async_function.ets" 887 }, 888 "end": { 889 "line": 22, 890 "column": 96, 891 "program": "async_function.ets" 892 } 893 } 894 } 895 ], 896 "loc": { 897 "start": { 898 "line": 1, 899 "column": 1, 900 "program": null 901 }, 902 "end": { 903 "line": 1, 904 "column": 1, 905 "program": null 906 } 907 } 908 }, 909 "loc": { 910 "start": { 911 "line": 1, 912 "column": 1, 913 "program": null 914 }, 915 "end": { 916 "line": 1, 917 "column": 1, 918 "program": null 919 } 920 } 921 }, 922 "loc": { 923 "start": { 924 "line": 1, 925 "column": 1, 926 "program": null 927 }, 928 "end": { 929 "line": 1, 930 "column": 1, 931 "program": null 932 } 933 } 934 }, 935 "overloads": [], 936 "decorators": [], 937 "loc": { 938 "start": { 939 "line": 1, 940 "column": 1, 941 "program": "async_function.ets" 942 }, 943 "end": { 944 "line": 1, 945 "column": 1, 946 "program": "async_function.ets" 947 } 948 } 949 }, 950 { 951 "type": "MethodDefinition", 952 "key": { 953 "type": "Identifier", 954 "name": "foo", 955 "decorators": [], 956 "loc": { 957 "start": { 958 "line": 20, 959 "column": 16, 960 "program": "async_function.ets" 961 }, 962 "end": { 963 "line": 20, 964 "column": 19, 965 "program": "async_function.ets" 966 } 967 } 968 }, 969 "kind": "method", 970 "accessibility": "public", 971 "static": true, 972 "optional": false, 973 "computed": false, 974 "value": { 975 "type": "FunctionExpression", 976 "function": { 977 "type": "ScriptFunction", 978 "id": { 979 "type": "Identifier", 980 "name": "foo", 981 "decorators": [], 982 "loc": { 983 "start": { 984 "line": 20, 985 "column": 16, 986 "program": "async_function.ets" 987 }, 988 "end": { 989 "line": 20, 990 "column": 19, 991 "program": "async_function.ets" 992 } 993 } 994 }, 995 "generator": false, 996 "async": true, 997 "expression": false, 998 "params": [], 999 "returnType": { 1000 "type": "ETSTypeReference", 1001 "part": { 1002 "type": "ETSTypeReferencePart", 1003 "name": { 1004 "type": "Identifier", 1005 "name": "Promise", 1006 "decorators": [], 1007 "loc": { 1008 "start": { 1009 "line": 20, 1010 "column": 23, 1011 "program": "async_function.ets" 1012 }, 1013 "end": { 1014 "line": 20, 1015 "column": 30, 1016 "program": "async_function.ets" 1017 } 1018 } 1019 }, 1020 "typeParams": { 1021 "type": "TSTypeParameterInstantiation", 1022 "params": [ 1023 { 1024 "type": "ETSUnionType", 1025 "types": [ 1026 { 1027 "type": "ETSTypeReference", 1028 "part": { 1029 "type": "ETSTypeReferencePart", 1030 "name": { 1031 "type": "Identifier", 1032 "name": "Object", 1033 "decorators": [], 1034 "loc": { 1035 "start": { 1036 "line": 20, 1037 "column": 31, 1038 "program": "async_function.ets" 1039 }, 1040 "end": { 1041 "line": 20, 1042 "column": 37, 1043 "program": "async_function.ets" 1044 } 1045 } 1046 }, 1047 "loc": { 1048 "start": { 1049 "line": 20, 1050 "column": 31, 1051 "program": "async_function.ets" 1052 }, 1053 "end": { 1054 "line": 20, 1055 "column": 39, 1056 "program": "async_function.ets" 1057 } 1058 } 1059 }, 1060 "loc": { 1061 "start": { 1062 "line": 20, 1063 "column": 31, 1064 "program": "async_function.ets" 1065 }, 1066 "end": { 1067 "line": 20, 1068 "column": 39, 1069 "program": "async_function.ets" 1070 } 1071 } 1072 }, 1073 { 1074 "type": "ETSNullType", 1075 "loc": { 1076 "start": { 1077 "line": 20, 1078 "column": 40, 1079 "program": "async_function.ets" 1080 }, 1081 "end": { 1082 "line": 20, 1083 "column": 44, 1084 "program": "async_function.ets" 1085 } 1086 } 1087 } 1088 ], 1089 "loc": { 1090 "start": { 1091 "line": 20, 1092 "column": 31, 1093 "program": "async_function.ets" 1094 }, 1095 "end": { 1096 "line": 20, 1097 "column": 44, 1098 "program": "async_function.ets" 1099 } 1100 } 1101 } 1102 ], 1103 "loc": { 1104 "start": { 1105 "line": 20, 1106 "column": 30, 1107 "program": "async_function.ets" 1108 }, 1109 "end": { 1110 "line": 20, 1111 "column": 45, 1112 "program": "async_function.ets" 1113 } 1114 } 1115 }, 1116 "loc": { 1117 "start": { 1118 "line": 20, 1119 "column": 23, 1120 "program": "async_function.ets" 1121 }, 1122 "end": { 1123 "line": 20, 1124 "column": 47, 1125 "program": "async_function.ets" 1126 } 1127 } 1128 }, 1129 "loc": { 1130 "start": { 1131 "line": 20, 1132 "column": 23, 1133 "program": "async_function.ets" 1134 }, 1135 "end": { 1136 "line": 20, 1137 "column": 47, 1138 "program": "async_function.ets" 1139 } 1140 } 1141 }, 1142 "body": { 1143 "type": "BlockStatement", 1144 "statements": [ 1145 { 1146 "type": "ReturnStatement", 1147 "argument": { 1148 "type": "NullLiteral", 1149 "value": null, 1150 "loc": { 1151 "start": { 1152 "line": 20, 1153 "column": 55, 1154 "program": "async_function.ets" 1155 }, 1156 "end": { 1157 "line": 20, 1158 "column": 59, 1159 "program": "async_function.ets" 1160 } 1161 } 1162 }, 1163 "loc": { 1164 "start": { 1165 "line": 20, 1166 "column": 48, 1167 "program": "async_function.ets" 1168 }, 1169 "end": { 1170 "line": 20, 1171 "column": 60, 1172 "program": "async_function.ets" 1173 } 1174 } 1175 } 1176 ], 1177 "loc": { 1178 "start": { 1179 "line": 20, 1180 "column": 46, 1181 "program": "async_function.ets" 1182 }, 1183 "end": { 1184 "line": 20, 1185 "column": 62, 1186 "program": "async_function.ets" 1187 } 1188 } 1189 }, 1190 "loc": { 1191 "start": { 1192 "line": 20, 1193 "column": 16, 1194 "program": "async_function.ets" 1195 }, 1196 "end": { 1197 "line": 20, 1198 "column": 62, 1199 "program": "async_function.ets" 1200 } 1201 } 1202 }, 1203 "loc": { 1204 "start": { 1205 "line": 20, 1206 "column": 16, 1207 "program": "async_function.ets" 1208 }, 1209 "end": { 1210 "line": 20, 1211 "column": 62, 1212 "program": "async_function.ets" 1213 } 1214 } 1215 }, 1216 "overloads": [], 1217 "decorators": [], 1218 "loc": { 1219 "start": { 1220 "line": 20, 1221 "column": 1, 1222 "program": "async_function.ets" 1223 }, 1224 "end": { 1225 "line": 20, 1226 "column": 62, 1227 "program": "async_function.ets" 1228 } 1229 } 1230 }, 1231 { 1232 "type": "ClassProperty", 1233 "key": { 1234 "type": "Identifier", 1235 "name": "lambda", 1236 "decorators": [], 1237 "loc": { 1238 "start": { 1239 "line": 22, 1240 "column": 5, 1241 "program": "async_function.ets" 1242 }, 1243 "end": { 1244 "line": 22, 1245 "column": 11, 1246 "program": "async_function.ets" 1247 } 1248 } 1249 }, 1250 "accessibility": "public", 1251 "static": true, 1252 "readonly": false, 1253 "declare": false, 1254 "optional": false, 1255 "computed": false, 1256 "typeAnnotation": { 1257 "type": "ETSFunctionType", 1258 "params": [], 1259 "returnType": { 1260 "type": "ETSTypeReference", 1261 "part": { 1262 "type": "ETSTypeReferencePart", 1263 "name": { 1264 "type": "Identifier", 1265 "name": "Promise", 1266 "decorators": [], 1267 "loc": { 1268 "start": { 1269 "line": 22, 1270 "column": 19, 1271 "program": "async_function.ets" 1272 }, 1273 "end": { 1274 "line": 22, 1275 "column": 26, 1276 "program": "async_function.ets" 1277 } 1278 } 1279 }, 1280 "typeParams": { 1281 "type": "TSTypeParameterInstantiation", 1282 "params": [ 1283 { 1284 "type": "ETSUnionType", 1285 "types": [ 1286 { 1287 "type": "ETSTypeReference", 1288 "part": { 1289 "type": "ETSTypeReferencePart", 1290 "name": { 1291 "type": "Identifier", 1292 "name": "Object", 1293 "decorators": [], 1294 "loc": { 1295 "start": { 1296 "line": 22, 1297 "column": 27, 1298 "program": "async_function.ets" 1299 }, 1300 "end": { 1301 "line": 22, 1302 "column": 33, 1303 "program": "async_function.ets" 1304 } 1305 } 1306 }, 1307 "loc": { 1308 "start": { 1309 "line": 22, 1310 "column": 27, 1311 "program": "async_function.ets" 1312 }, 1313 "end": { 1314 "line": 22, 1315 "column": 35, 1316 "program": "async_function.ets" 1317 } 1318 } 1319 }, 1320 "loc": { 1321 "start": { 1322 "line": 22, 1323 "column": 27, 1324 "program": "async_function.ets" 1325 }, 1326 "end": { 1327 "line": 22, 1328 "column": 35, 1329 "program": "async_function.ets" 1330 } 1331 } 1332 }, 1333 { 1334 "type": "ETSNullType", 1335 "loc": { 1336 "start": { 1337 "line": 22, 1338 "column": 36, 1339 "program": "async_function.ets" 1340 }, 1341 "end": { 1342 "line": 22, 1343 "column": 40, 1344 "program": "async_function.ets" 1345 } 1346 } 1347 } 1348 ], 1349 "loc": { 1350 "start": { 1351 "line": 22, 1352 "column": 27, 1353 "program": "async_function.ets" 1354 }, 1355 "end": { 1356 "line": 22, 1357 "column": 40, 1358 "program": "async_function.ets" 1359 } 1360 } 1361 } 1362 ], 1363 "loc": { 1364 "start": { 1365 "line": 22, 1366 "column": 26, 1367 "program": "async_function.ets" 1368 }, 1369 "end": { 1370 "line": 22, 1371 "column": 41, 1372 "program": "async_function.ets" 1373 } 1374 } 1375 }, 1376 "loc": { 1377 "start": { 1378 "line": 22, 1379 "column": 19, 1380 "program": "async_function.ets" 1381 }, 1382 "end": { 1383 "line": 22, 1384 "column": 43, 1385 "program": "async_function.ets" 1386 } 1387 } 1388 }, 1389 "loc": { 1390 "start": { 1391 "line": 22, 1392 "column": 19, 1393 "program": "async_function.ets" 1394 }, 1395 "end": { 1396 "line": 22, 1397 "column": 43, 1398 "program": "async_function.ets" 1399 } 1400 } 1401 }, 1402 "loc": { 1403 "start": { 1404 "line": 22, 1405 "column": 13, 1406 "program": "async_function.ets" 1407 }, 1408 "end": { 1409 "line": 22, 1410 "column": 43, 1411 "program": "async_function.ets" 1412 } 1413 } 1414 }, 1415 "definite": false, 1416 "decorators": [], 1417 "loc": { 1418 "start": { 1419 "line": 22, 1420 "column": 5, 1421 "program": "async_function.ets" 1422 }, 1423 "end": { 1424 "line": 22, 1425 "column": 96, 1426 "program": "async_function.ets" 1427 } 1428 } 1429 } 1430 ], 1431 "loc": { 1432 "start": { 1433 "line": 1, 1434 "column": 1, 1435 "program": "async_function.ets" 1436 }, 1437 "end": { 1438 "line": 1, 1439 "column": 1, 1440 "program": "async_function.ets" 1441 } 1442 } 1443 }, 1444 "loc": { 1445 "start": { 1446 "line": 1, 1447 "column": 1, 1448 "program": "async_function.ets" 1449 }, 1450 "end": { 1451 "line": 1, 1452 "column": 1, 1453 "program": "async_function.ets" 1454 } 1455 } 1456 } 1457 ], 1458 "loc": { 1459 "start": { 1460 "line": 1, 1461 "column": 1, 1462 "program": "async_function.ets" 1463 }, 1464 "end": { 1465 "line": 23, 1466 "column": 1, 1467 "program": "async_function.ets" 1468 } 1469 } 1470} 1471