1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "ETSGLOBAL", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 1, 14 "column": 1 15 }, 16 "end": { 17 "line": 1, 18 "column": 1 19 } 20 } 21 }, 22 "superClass": null, 23 "implements": [], 24 "body": [ 25 { 26 "type": "MethodDefinition", 27 "key": { 28 "type": "Identifier", 29 "name": "_$init$_", 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": "method", 43 "accessibility": "public", 44 "static": true, 45 "optional": false, 46 "computed": false, 47 "value": { 48 "type": "FunctionExpression", 49 "function": { 50 "type": "ScriptFunction", 51 "id": { 52 "type": "Identifier", 53 "name": "_$init$_", 54 "decorators": [], 55 "loc": { 56 "start": { 57 "line": 1, 58 "column": 1 59 }, 60 "end": { 61 "line": 1, 62 "column": 1 63 } 64 } 65 }, 66 "generator": false, 67 "async": false, 68 "expression": false, 69 "params": [], 70 "body": { 71 "type": "BlockStatement", 72 "statements": [], 73 "loc": { 74 "start": { 75 "line": 1, 76 "column": 1 77 }, 78 "end": { 79 "line": 1, 80 "column": 1 81 } 82 } 83 }, 84 "loc": { 85 "start": { 86 "line": 1, 87 "column": 1 88 }, 89 "end": { 90 "line": 1, 91 "column": 1 92 } 93 } 94 }, 95 "loc": { 96 "start": { 97 "line": 1, 98 "column": 1 99 }, 100 "end": { 101 "line": 1, 102 "column": 1 103 } 104 } 105 }, 106 "overloads": [], 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 { 120 "type": "ClassProperty", 121 "key": { 122 "type": "Identifier", 123 "name": "fs", 124 "decorators": [], 125 "loc": { 126 "start": { 127 "line": 16, 128 "column": 5 129 }, 130 "end": { 131 "line": 16, 132 "column": 7 133 } 134 } 135 }, 136 "accessibility": "public", 137 "static": true, 138 "readonly": false, 139 "declare": false, 140 "optional": false, 141 "computed": false, 142 "typeAnnotation": { 143 "type": "TSArrayType", 144 "elementType": { 145 "type": "ETSFunctionType", 146 "params": [ 147 { 148 "type": "ETSParameterExpression", 149 "name": { 150 "type": "Identifier", 151 "name": "p", 152 "typeAnnotation": { 153 "type": "ETSPrimitiveType", 154 "loc": { 155 "start": { 156 "line": 16, 157 "column": 14 158 }, 159 "end": { 160 "line": 16, 161 "column": 17 162 } 163 } 164 }, 165 "decorators": [], 166 "loc": { 167 "start": { 168 "line": 16, 169 "column": 11 170 }, 171 "end": { 172 "line": 16, 173 "column": 17 174 } 175 } 176 }, 177 "loc": { 178 "start": { 179 "line": 16, 180 "column": 11 181 }, 182 "end": { 183 "line": 16, 184 "column": 17 185 } 186 } 187 } 188 ], 189 "returnType": { 190 "type": "ETSPrimitiveType", 191 "loc": { 192 "start": { 193 "line": 16, 194 "column": 22 195 }, 196 "end": { 197 "line": 16, 198 "column": 25 199 } 200 } 201 }, 202 "loc": { 203 "start": { 204 "line": 16, 205 "column": 9 206 }, 207 "end": { 208 "line": 16, 209 "column": 25 210 } 211 } 212 }, 213 "loc": { 214 "start": { 215 "line": 18, 216 "column": 1 217 }, 218 "end": { 219 "line": 18, 220 "column": 9 221 } 222 } 223 }, 224 "definite": false, 225 "decorators": [], 226 "loc": { 227 "start": { 228 "line": 16, 229 "column": 5 230 }, 231 "end": { 232 "line": 16, 233 "column": 7 234 } 235 } 236 }, 237 { 238 "type": "MethodDefinition", 239 "key": { 240 "type": "Identifier", 241 "name": "foo", 242 "decorators": [], 243 "loc": { 244 "start": { 245 "line": 18, 246 "column": 10 247 }, 248 "end": { 249 "line": 18, 250 "column": 13 251 } 252 } 253 }, 254 "kind": "method", 255 "accessibility": "public", 256 "static": true, 257 "optional": false, 258 "computed": false, 259 "value": { 260 "type": "FunctionExpression", 261 "function": { 262 "type": "ScriptFunction", 263 "id": { 264 "type": "Identifier", 265 "name": "foo", 266 "decorators": [], 267 "loc": { 268 "start": { 269 "line": 18, 270 "column": 10 271 }, 272 "end": { 273 "line": 18, 274 "column": 13 275 } 276 } 277 }, 278 "generator": false, 279 "async": false, 280 "expression": false, 281 "params": [ 282 { 283 "type": "ETSParameterExpression", 284 "name": { 285 "type": "Identifier", 286 "name": "i", 287 "typeAnnotation": { 288 "type": "ETSPrimitiveType", 289 "loc": { 290 "start": { 291 "line": 18, 292 "column": 17 293 }, 294 "end": { 295 "line": 18, 296 "column": 20 297 } 298 } 299 }, 300 "decorators": [], 301 "loc": { 302 "start": { 303 "line": 18, 304 "column": 14 305 }, 306 "end": { 307 "line": 18, 308 "column": 20 309 } 310 } 311 }, 312 "loc": { 313 "start": { 314 "line": 18, 315 "column": 14 316 }, 317 "end": { 318 "line": 18, 319 "column": 20 320 } 321 } 322 } 323 ], 324 "returnType": { 325 "type": "ETSFunctionType", 326 "params": [ 327 { 328 "type": "ETSParameterExpression", 329 "name": { 330 "type": "Identifier", 331 "name": "p", 332 "typeAnnotation": { 333 "type": "ETSPrimitiveType", 334 "loc": { 335 "start": { 336 "line": 18, 337 "column": 28 338 }, 339 "end": { 340 "line": 18, 341 "column": 31 342 } 343 } 344 }, 345 "decorators": [], 346 "loc": { 347 "start": { 348 "line": 18, 349 "column": 25 350 }, 351 "end": { 352 "line": 18, 353 "column": 31 354 } 355 } 356 }, 357 "loc": { 358 "start": { 359 "line": 18, 360 "column": 25 361 }, 362 "end": { 363 "line": 18, 364 "column": 31 365 } 366 } 367 } 368 ], 369 "returnType": { 370 "type": "ETSPrimitiveType", 371 "loc": { 372 "start": { 373 "line": 18, 374 "column": 36 375 }, 376 "end": { 377 "line": 18, 378 "column": 39 379 } 380 } 381 }, 382 "loc": { 383 "start": { 384 "line": 18, 385 "column": 23 386 }, 387 "end": { 388 "line": 18, 389 "column": 39 390 } 391 } 392 }, 393 "body": { 394 "type": "BlockStatement", 395 "statements": [ 396 { 397 "type": "ReturnStatement", 398 "argument": { 399 "type": "MemberExpression", 400 "object": { 401 "type": "Identifier", 402 "name": "fs", 403 "decorators": [], 404 "loc": { 405 "start": { 406 "line": 19, 407 "column": 12 408 }, 409 "end": { 410 "line": 19, 411 "column": 14 412 } 413 } 414 }, 415 "property": { 416 "type": "Identifier", 417 "name": "i", 418 "decorators": [], 419 "loc": { 420 "start": { 421 "line": 19, 422 "column": 15 423 }, 424 "end": { 425 "line": 19, 426 "column": 16 427 } 428 } 429 }, 430 "computed": true, 431 "optional": false, 432 "loc": { 433 "start": { 434 "line": 19, 435 "column": 12 436 }, 437 "end": { 438 "line": 19, 439 "column": 17 440 } 441 } 442 }, 443 "loc": { 444 "start": { 445 "line": 19, 446 "column": 5 447 }, 448 "end": { 449 "line": 19, 450 "column": 17 451 } 452 } 453 } 454 ], 455 "loc": { 456 "start": { 457 "line": 18, 458 "column": 41 459 }, 460 "end": { 461 "line": 20, 462 "column": 2 463 } 464 } 465 }, 466 "loc": { 467 "start": { 468 "line": 18, 469 "column": 13 470 }, 471 "end": { 472 "line": 20, 473 "column": 2 474 } 475 } 476 }, 477 "loc": { 478 "start": { 479 "line": 18, 480 "column": 13 481 }, 482 "end": { 483 "line": 20, 484 "column": 2 485 } 486 } 487 }, 488 "overloads": [], 489 "decorators": [], 490 "loc": { 491 "start": { 492 "line": 18, 493 "column": 1 494 }, 495 "end": { 496 "line": 20, 497 "column": 2 498 } 499 } 500 }, 501 { 502 "type": "MethodDefinition", 503 "key": { 504 "type": "Identifier", 505 "name": "main", 506 "decorators": [], 507 "loc": { 508 "start": { 509 "line": 22, 510 "column": 10 511 }, 512 "end": { 513 "line": 22, 514 "column": 14 515 } 516 } 517 }, 518 "kind": "method", 519 "accessibility": "public", 520 "static": true, 521 "optional": false, 522 "computed": false, 523 "value": { 524 "type": "FunctionExpression", 525 "function": { 526 "type": "ScriptFunction", 527 "id": { 528 "type": "Identifier", 529 "name": "main", 530 "decorators": [], 531 "loc": { 532 "start": { 533 "line": 22, 534 "column": 10 535 }, 536 "end": { 537 "line": 22, 538 "column": 14 539 } 540 } 541 }, 542 "generator": false, 543 "async": false, 544 "expression": false, 545 "params": [], 546 "body": { 547 "type": "BlockStatement", 548 "statements": [ 549 { 550 "type": "ExpressionStatement", 551 "expression": { 552 "type": "AssignmentExpression", 553 "operator": "=", 554 "left": { 555 "type": "Identifier", 556 "name": "fs", 557 "decorators": [], 558 "loc": { 559 "start": { 560 "line": 23, 561 "column": 5 562 }, 563 "end": { 564 "line": 23, 565 "column": 7 566 } 567 } 568 }, 569 "right": { 570 "type": "ArrayExpression", 571 "elements": [ 572 { 573 "type": "ArrowFunctionExpression", 574 "function": { 575 "type": "ScriptFunction", 576 "id": null, 577 "generator": false, 578 "async": false, 579 "expression": true, 580 "params": [ 581 { 582 "type": "ETSParameterExpression", 583 "name": { 584 "type": "Identifier", 585 "name": "p", 586 "typeAnnotation": { 587 "type": "ETSPrimitiveType", 588 "loc": { 589 "start": { 590 "line": 24, 591 "column": 13 592 }, 593 "end": { 594 "line": 24, 595 "column": 16 596 } 597 } 598 }, 599 "decorators": [], 600 "loc": { 601 "start": { 602 "line": 24, 603 "column": 10 604 }, 605 "end": { 606 "line": 24, 607 "column": 16 608 } 609 } 610 }, 611 "loc": { 612 "start": { 613 "line": 24, 614 "column": 10 615 }, 616 "end": { 617 "line": 24, 618 "column": 16 619 } 620 } 621 } 622 ], 623 "returnType": { 624 "type": "ETSPrimitiveType", 625 "loc": { 626 "start": { 627 "line": 24, 628 "column": 19 629 }, 630 "end": { 631 "line": 24, 632 "column": 22 633 } 634 } 635 }, 636 "body": { 637 "type": "BlockStatement", 638 "statements": [ 639 { 640 "type": "ReturnStatement", 641 "argument": { 642 "type": "BinaryExpression", 643 "operator": "+", 644 "left": { 645 "type": "Identifier", 646 "name": "p", 647 "decorators": [], 648 "loc": { 649 "start": { 650 "line": 24, 651 "column": 26 652 }, 653 "end": { 654 "line": 24, 655 "column": 27 656 } 657 } 658 }, 659 "right": { 660 "type": "NumberLiteral", 661 "value": 1, 662 "loc": { 663 "start": { 664 "line": 24, 665 "column": 30 666 }, 667 "end": { 668 "line": 24, 669 "column": 31 670 } 671 } 672 }, 673 "loc": { 674 "start": { 675 "line": 24, 676 "column": 26 677 }, 678 "end": { 679 "line": 24, 680 "column": 31 681 } 682 } 683 }, 684 "loc": { 685 "start": { 686 "line": 1, 687 "column": 1 688 }, 689 "end": { 690 "line": 1, 691 "column": 1 692 } 693 } 694 } 695 ], 696 "loc": { 697 "start": { 698 "line": 1, 699 "column": 1 700 }, 701 "end": { 702 "line": 1, 703 "column": 1 704 } 705 } 706 }, 707 "loc": { 708 "start": { 709 "line": 24, 710 "column": 9 711 }, 712 "end": { 713 "line": 24, 714 "column": 31 715 } 716 } 717 }, 718 "loc": { 719 "start": { 720 "line": 24, 721 "column": 9 722 }, 723 "end": { 724 "line": 24, 725 "column": 31 726 } 727 } 728 }, 729 { 730 "type": "ArrowFunctionExpression", 731 "function": { 732 "type": "ScriptFunction", 733 "id": null, 734 "generator": false, 735 "async": false, 736 "expression": true, 737 "params": [ 738 { 739 "type": "ETSParameterExpression", 740 "name": { 741 "type": "Identifier", 742 "name": "p", 743 "typeAnnotation": { 744 "type": "ETSPrimitiveType", 745 "loc": { 746 "start": { 747 "line": 25, 748 "column": 13 749 }, 750 "end": { 751 "line": 25, 752 "column": 16 753 } 754 } 755 }, 756 "decorators": [], 757 "loc": { 758 "start": { 759 "line": 25, 760 "column": 10 761 }, 762 "end": { 763 "line": 25, 764 "column": 16 765 } 766 } 767 }, 768 "loc": { 769 "start": { 770 "line": 25, 771 "column": 10 772 }, 773 "end": { 774 "line": 25, 775 "column": 16 776 } 777 } 778 } 779 ], 780 "returnType": { 781 "type": "ETSPrimitiveType", 782 "loc": { 783 "start": { 784 "line": 25, 785 "column": 19 786 }, 787 "end": { 788 "line": 25, 789 "column": 22 790 } 791 } 792 }, 793 "body": { 794 "type": "BlockStatement", 795 "statements": [ 796 { 797 "type": "ReturnStatement", 798 "argument": { 799 "type": "BinaryExpression", 800 "operator": "+", 801 "left": { 802 "type": "Identifier", 803 "name": "p", 804 "decorators": [], 805 "loc": { 806 "start": { 807 "line": 25, 808 "column": 26 809 }, 810 "end": { 811 "line": 25, 812 "column": 27 813 } 814 } 815 }, 816 "right": { 817 "type": "NumberLiteral", 818 "value": 2, 819 "loc": { 820 "start": { 821 "line": 25, 822 "column": 30 823 }, 824 "end": { 825 "line": 25, 826 "column": 31 827 } 828 } 829 }, 830 "loc": { 831 "start": { 832 "line": 25, 833 "column": 26 834 }, 835 "end": { 836 "line": 25, 837 "column": 31 838 } 839 } 840 }, 841 "loc": { 842 "start": { 843 "line": 1, 844 "column": 1 845 }, 846 "end": { 847 "line": 1, 848 "column": 1 849 } 850 } 851 } 852 ], 853 "loc": { 854 "start": { 855 "line": 1, 856 "column": 1 857 }, 858 "end": { 859 "line": 1, 860 "column": 1 861 } 862 } 863 }, 864 "loc": { 865 "start": { 866 "line": 25, 867 "column": 9 868 }, 869 "end": { 870 "line": 25, 871 "column": 31 872 } 873 } 874 }, 875 "loc": { 876 "start": { 877 "line": 25, 878 "column": 9 879 }, 880 "end": { 881 "line": 25, 882 "column": 31 883 } 884 } 885 }, 886 { 887 "type": "ArrowFunctionExpression", 888 "function": { 889 "type": "ScriptFunction", 890 "id": null, 891 "generator": false, 892 "async": false, 893 "expression": true, 894 "params": [ 895 { 896 "type": "ETSParameterExpression", 897 "name": { 898 "type": "Identifier", 899 "name": "p", 900 "typeAnnotation": { 901 "type": "ETSPrimitiveType", 902 "loc": { 903 "start": { 904 "line": 26, 905 "column": 13 906 }, 907 "end": { 908 "line": 26, 909 "column": 16 910 } 911 } 912 }, 913 "decorators": [], 914 "loc": { 915 "start": { 916 "line": 26, 917 "column": 10 918 }, 919 "end": { 920 "line": 26, 921 "column": 16 922 } 923 } 924 }, 925 "loc": { 926 "start": { 927 "line": 26, 928 "column": 10 929 }, 930 "end": { 931 "line": 26, 932 "column": 16 933 } 934 } 935 } 936 ], 937 "returnType": { 938 "type": "ETSPrimitiveType", 939 "loc": { 940 "start": { 941 "line": 26, 942 "column": 19 943 }, 944 "end": { 945 "line": 26, 946 "column": 22 947 } 948 } 949 }, 950 "body": { 951 "type": "BlockStatement", 952 "statements": [ 953 { 954 "type": "ReturnStatement", 955 "argument": { 956 "type": "BinaryExpression", 957 "operator": "+", 958 "left": { 959 "type": "Identifier", 960 "name": "p", 961 "decorators": [], 962 "loc": { 963 "start": { 964 "line": 26, 965 "column": 26 966 }, 967 "end": { 968 "line": 26, 969 "column": 27 970 } 971 } 972 }, 973 "right": { 974 "type": "NumberLiteral", 975 "value": 3, 976 "loc": { 977 "start": { 978 "line": 26, 979 "column": 30 980 }, 981 "end": { 982 "line": 26, 983 "column": 31 984 } 985 } 986 }, 987 "loc": { 988 "start": { 989 "line": 26, 990 "column": 26 991 }, 992 "end": { 993 "line": 26, 994 "column": 31 995 } 996 } 997 }, 998 "loc": { 999 "start": { 1000 "line": 1, 1001 "column": 1 1002 }, 1003 "end": { 1004 "line": 1, 1005 "column": 1 1006 } 1007 } 1008 } 1009 ], 1010 "loc": { 1011 "start": { 1012 "line": 1, 1013 "column": 1 1014 }, 1015 "end": { 1016 "line": 1, 1017 "column": 1 1018 } 1019 } 1020 }, 1021 "loc": { 1022 "start": { 1023 "line": 26, 1024 "column": 9 1025 }, 1026 "end": { 1027 "line": 26, 1028 "column": 31 1029 } 1030 } 1031 }, 1032 "loc": { 1033 "start": { 1034 "line": 26, 1035 "column": 9 1036 }, 1037 "end": { 1038 "line": 26, 1039 "column": 31 1040 } 1041 } 1042 }, 1043 { 1044 "type": "ArrowFunctionExpression", 1045 "function": { 1046 "type": "ScriptFunction", 1047 "id": null, 1048 "generator": false, 1049 "async": false, 1050 "expression": true, 1051 "params": [ 1052 { 1053 "type": "ETSParameterExpression", 1054 "name": { 1055 "type": "Identifier", 1056 "name": "p", 1057 "typeAnnotation": { 1058 "type": "ETSPrimitiveType", 1059 "loc": { 1060 "start": { 1061 "line": 27, 1062 "column": 13 1063 }, 1064 "end": { 1065 "line": 27, 1066 "column": 16 1067 } 1068 } 1069 }, 1070 "decorators": [], 1071 "loc": { 1072 "start": { 1073 "line": 27, 1074 "column": 10 1075 }, 1076 "end": { 1077 "line": 27, 1078 "column": 16 1079 } 1080 } 1081 }, 1082 "loc": { 1083 "start": { 1084 "line": 27, 1085 "column": 10 1086 }, 1087 "end": { 1088 "line": 27, 1089 "column": 16 1090 } 1091 } 1092 } 1093 ], 1094 "returnType": { 1095 "type": "ETSPrimitiveType", 1096 "loc": { 1097 "start": { 1098 "line": 27, 1099 "column": 19 1100 }, 1101 "end": { 1102 "line": 27, 1103 "column": 22 1104 } 1105 } 1106 }, 1107 "body": { 1108 "type": "BlockStatement", 1109 "statements": [ 1110 { 1111 "type": "ReturnStatement", 1112 "argument": { 1113 "type": "BinaryExpression", 1114 "operator": "+", 1115 "left": { 1116 "type": "Identifier", 1117 "name": "p", 1118 "decorators": [], 1119 "loc": { 1120 "start": { 1121 "line": 27, 1122 "column": 26 1123 }, 1124 "end": { 1125 "line": 27, 1126 "column": 27 1127 } 1128 } 1129 }, 1130 "right": { 1131 "type": "NumberLiteral", 1132 "value": 4, 1133 "loc": { 1134 "start": { 1135 "line": 27, 1136 "column": 30 1137 }, 1138 "end": { 1139 "line": 27, 1140 "column": 31 1141 } 1142 } 1143 }, 1144 "loc": { 1145 "start": { 1146 "line": 27, 1147 "column": 26 1148 }, 1149 "end": { 1150 "line": 27, 1151 "column": 31 1152 } 1153 } 1154 }, 1155 "loc": { 1156 "start": { 1157 "line": 1, 1158 "column": 1 1159 }, 1160 "end": { 1161 "line": 1, 1162 "column": 1 1163 } 1164 } 1165 } 1166 ], 1167 "loc": { 1168 "start": { 1169 "line": 1, 1170 "column": 1 1171 }, 1172 "end": { 1173 "line": 1, 1174 "column": 1 1175 } 1176 } 1177 }, 1178 "loc": { 1179 "start": { 1180 "line": 27, 1181 "column": 9 1182 }, 1183 "end": { 1184 "line": 27, 1185 "column": 31 1186 } 1187 } 1188 }, 1189 "loc": { 1190 "start": { 1191 "line": 27, 1192 "column": 9 1193 }, 1194 "end": { 1195 "line": 27, 1196 "column": 31 1197 } 1198 } 1199 }, 1200 { 1201 "type": "ArrowFunctionExpression", 1202 "function": { 1203 "type": "ScriptFunction", 1204 "id": null, 1205 "generator": false, 1206 "async": false, 1207 "expression": true, 1208 "params": [ 1209 { 1210 "type": "ETSParameterExpression", 1211 "name": { 1212 "type": "Identifier", 1213 "name": "p", 1214 "typeAnnotation": { 1215 "type": "ETSPrimitiveType", 1216 "loc": { 1217 "start": { 1218 "line": 28, 1219 "column": 13 1220 }, 1221 "end": { 1222 "line": 28, 1223 "column": 16 1224 } 1225 } 1226 }, 1227 "decorators": [], 1228 "loc": { 1229 "start": { 1230 "line": 28, 1231 "column": 10 1232 }, 1233 "end": { 1234 "line": 28, 1235 "column": 16 1236 } 1237 } 1238 }, 1239 "loc": { 1240 "start": { 1241 "line": 28, 1242 "column": 10 1243 }, 1244 "end": { 1245 "line": 28, 1246 "column": 16 1247 } 1248 } 1249 } 1250 ], 1251 "returnType": { 1252 "type": "ETSPrimitiveType", 1253 "loc": { 1254 "start": { 1255 "line": 28, 1256 "column": 19 1257 }, 1258 "end": { 1259 "line": 28, 1260 "column": 22 1261 } 1262 } 1263 }, 1264 "body": { 1265 "type": "BlockStatement", 1266 "statements": [ 1267 { 1268 "type": "ReturnStatement", 1269 "argument": { 1270 "type": "BinaryExpression", 1271 "operator": "+", 1272 "left": { 1273 "type": "Identifier", 1274 "name": "p", 1275 "decorators": [], 1276 "loc": { 1277 "start": { 1278 "line": 28, 1279 "column": 26 1280 }, 1281 "end": { 1282 "line": 28, 1283 "column": 27 1284 } 1285 } 1286 }, 1287 "right": { 1288 "type": "NumberLiteral", 1289 "value": 5, 1290 "loc": { 1291 "start": { 1292 "line": 28, 1293 "column": 30 1294 }, 1295 "end": { 1296 "line": 28, 1297 "column": 31 1298 } 1299 } 1300 }, 1301 "loc": { 1302 "start": { 1303 "line": 28, 1304 "column": 26 1305 }, 1306 "end": { 1307 "line": 28, 1308 "column": 31 1309 } 1310 } 1311 }, 1312 "loc": { 1313 "start": { 1314 "line": 1, 1315 "column": 1 1316 }, 1317 "end": { 1318 "line": 1, 1319 "column": 1 1320 } 1321 } 1322 } 1323 ], 1324 "loc": { 1325 "start": { 1326 "line": 1, 1327 "column": 1 1328 }, 1329 "end": { 1330 "line": 1, 1331 "column": 1 1332 } 1333 } 1334 }, 1335 "loc": { 1336 "start": { 1337 "line": 28, 1338 "column": 9 1339 }, 1340 "end": { 1341 "line": 28, 1342 "column": 31 1343 } 1344 } 1345 }, 1346 "loc": { 1347 "start": { 1348 "line": 28, 1349 "column": 9 1350 }, 1351 "end": { 1352 "line": 28, 1353 "column": 31 1354 } 1355 } 1356 }, 1357 { 1358 "type": "ArrowFunctionExpression", 1359 "function": { 1360 "type": "ScriptFunction", 1361 "id": null, 1362 "generator": false, 1363 "async": false, 1364 "expression": true, 1365 "params": [ 1366 { 1367 "type": "ETSParameterExpression", 1368 "name": { 1369 "type": "Identifier", 1370 "name": "p", 1371 "typeAnnotation": { 1372 "type": "ETSPrimitiveType", 1373 "loc": { 1374 "start": { 1375 "line": 29, 1376 "column": 13 1377 }, 1378 "end": { 1379 "line": 29, 1380 "column": 16 1381 } 1382 } 1383 }, 1384 "decorators": [], 1385 "loc": { 1386 "start": { 1387 "line": 29, 1388 "column": 10 1389 }, 1390 "end": { 1391 "line": 29, 1392 "column": 16 1393 } 1394 } 1395 }, 1396 "loc": { 1397 "start": { 1398 "line": 29, 1399 "column": 10 1400 }, 1401 "end": { 1402 "line": 29, 1403 "column": 16 1404 } 1405 } 1406 } 1407 ], 1408 "returnType": { 1409 "type": "ETSPrimitiveType", 1410 "loc": { 1411 "start": { 1412 "line": 29, 1413 "column": 19 1414 }, 1415 "end": { 1416 "line": 29, 1417 "column": 22 1418 } 1419 } 1420 }, 1421 "body": { 1422 "type": "BlockStatement", 1423 "statements": [ 1424 { 1425 "type": "ReturnStatement", 1426 "argument": { 1427 "type": "BinaryExpression", 1428 "operator": "+", 1429 "left": { 1430 "type": "Identifier", 1431 "name": "p", 1432 "decorators": [], 1433 "loc": { 1434 "start": { 1435 "line": 29, 1436 "column": 26 1437 }, 1438 "end": { 1439 "line": 29, 1440 "column": 27 1441 } 1442 } 1443 }, 1444 "right": { 1445 "type": "NumberLiteral", 1446 "value": 6, 1447 "loc": { 1448 "start": { 1449 "line": 29, 1450 "column": 30 1451 }, 1452 "end": { 1453 "line": 29, 1454 "column": 31 1455 } 1456 } 1457 }, 1458 "loc": { 1459 "start": { 1460 "line": 29, 1461 "column": 26 1462 }, 1463 "end": { 1464 "line": 29, 1465 "column": 31 1466 } 1467 } 1468 }, 1469 "loc": { 1470 "start": { 1471 "line": 1, 1472 "column": 1 1473 }, 1474 "end": { 1475 "line": 1, 1476 "column": 1 1477 } 1478 } 1479 } 1480 ], 1481 "loc": { 1482 "start": { 1483 "line": 1, 1484 "column": 1 1485 }, 1486 "end": { 1487 "line": 1, 1488 "column": 1 1489 } 1490 } 1491 }, 1492 "loc": { 1493 "start": { 1494 "line": 29, 1495 "column": 9 1496 }, 1497 "end": { 1498 "line": 29, 1499 "column": 31 1500 } 1501 } 1502 }, 1503 "loc": { 1504 "start": { 1505 "line": 29, 1506 "column": 9 1507 }, 1508 "end": { 1509 "line": 29, 1510 "column": 31 1511 } 1512 } 1513 }, 1514 { 1515 "type": "ArrowFunctionExpression", 1516 "function": { 1517 "type": "ScriptFunction", 1518 "id": null, 1519 "generator": false, 1520 "async": false, 1521 "expression": true, 1522 "params": [ 1523 { 1524 "type": "ETSParameterExpression", 1525 "name": { 1526 "type": "Identifier", 1527 "name": "p", 1528 "typeAnnotation": { 1529 "type": "ETSPrimitiveType", 1530 "loc": { 1531 "start": { 1532 "line": 30, 1533 "column": 13 1534 }, 1535 "end": { 1536 "line": 30, 1537 "column": 16 1538 } 1539 } 1540 }, 1541 "decorators": [], 1542 "loc": { 1543 "start": { 1544 "line": 30, 1545 "column": 10 1546 }, 1547 "end": { 1548 "line": 30, 1549 "column": 16 1550 } 1551 } 1552 }, 1553 "loc": { 1554 "start": { 1555 "line": 30, 1556 "column": 10 1557 }, 1558 "end": { 1559 "line": 30, 1560 "column": 16 1561 } 1562 } 1563 } 1564 ], 1565 "returnType": { 1566 "type": "ETSPrimitiveType", 1567 "loc": { 1568 "start": { 1569 "line": 30, 1570 "column": 19 1571 }, 1572 "end": { 1573 "line": 30, 1574 "column": 22 1575 } 1576 } 1577 }, 1578 "body": { 1579 "type": "BlockStatement", 1580 "statements": [ 1581 { 1582 "type": "ReturnStatement", 1583 "argument": { 1584 "type": "BinaryExpression", 1585 "operator": "+", 1586 "left": { 1587 "type": "Identifier", 1588 "name": "p", 1589 "decorators": [], 1590 "loc": { 1591 "start": { 1592 "line": 30, 1593 "column": 26 1594 }, 1595 "end": { 1596 "line": 30, 1597 "column": 27 1598 } 1599 } 1600 }, 1601 "right": { 1602 "type": "NumberLiteral", 1603 "value": 7, 1604 "loc": { 1605 "start": { 1606 "line": 30, 1607 "column": 30 1608 }, 1609 "end": { 1610 "line": 30, 1611 "column": 31 1612 } 1613 } 1614 }, 1615 "loc": { 1616 "start": { 1617 "line": 30, 1618 "column": 26 1619 }, 1620 "end": { 1621 "line": 30, 1622 "column": 31 1623 } 1624 } 1625 }, 1626 "loc": { 1627 "start": { 1628 "line": 1, 1629 "column": 1 1630 }, 1631 "end": { 1632 "line": 1, 1633 "column": 1 1634 } 1635 } 1636 } 1637 ], 1638 "loc": { 1639 "start": { 1640 "line": 1, 1641 "column": 1 1642 }, 1643 "end": { 1644 "line": 1, 1645 "column": 1 1646 } 1647 } 1648 }, 1649 "loc": { 1650 "start": { 1651 "line": 30, 1652 "column": 9 1653 }, 1654 "end": { 1655 "line": 30, 1656 "column": 31 1657 } 1658 } 1659 }, 1660 "loc": { 1661 "start": { 1662 "line": 30, 1663 "column": 9 1664 }, 1665 "end": { 1666 "line": 30, 1667 "column": 31 1668 } 1669 } 1670 }, 1671 { 1672 "type": "ArrowFunctionExpression", 1673 "function": { 1674 "type": "ScriptFunction", 1675 "id": null, 1676 "generator": false, 1677 "async": false, 1678 "expression": true, 1679 "params": [ 1680 { 1681 "type": "ETSParameterExpression", 1682 "name": { 1683 "type": "Identifier", 1684 "name": "p", 1685 "typeAnnotation": { 1686 "type": "ETSPrimitiveType", 1687 "loc": { 1688 "start": { 1689 "line": 31, 1690 "column": 13 1691 }, 1692 "end": { 1693 "line": 31, 1694 "column": 16 1695 } 1696 } 1697 }, 1698 "decorators": [], 1699 "loc": { 1700 "start": { 1701 "line": 31, 1702 "column": 10 1703 }, 1704 "end": { 1705 "line": 31, 1706 "column": 16 1707 } 1708 } 1709 }, 1710 "loc": { 1711 "start": { 1712 "line": 31, 1713 "column": 10 1714 }, 1715 "end": { 1716 "line": 31, 1717 "column": 16 1718 } 1719 } 1720 } 1721 ], 1722 "returnType": { 1723 "type": "ETSPrimitiveType", 1724 "loc": { 1725 "start": { 1726 "line": 31, 1727 "column": 19 1728 }, 1729 "end": { 1730 "line": 31, 1731 "column": 22 1732 } 1733 } 1734 }, 1735 "body": { 1736 "type": "BlockStatement", 1737 "statements": [ 1738 { 1739 "type": "ReturnStatement", 1740 "argument": { 1741 "type": "BinaryExpression", 1742 "operator": "+", 1743 "left": { 1744 "type": "Identifier", 1745 "name": "p", 1746 "decorators": [], 1747 "loc": { 1748 "start": { 1749 "line": 31, 1750 "column": 26 1751 }, 1752 "end": { 1753 "line": 31, 1754 "column": 27 1755 } 1756 } 1757 }, 1758 "right": { 1759 "type": "NumberLiteral", 1760 "value": 8, 1761 "loc": { 1762 "start": { 1763 "line": 31, 1764 "column": 30 1765 }, 1766 "end": { 1767 "line": 31, 1768 "column": 31 1769 } 1770 } 1771 }, 1772 "loc": { 1773 "start": { 1774 "line": 31, 1775 "column": 26 1776 }, 1777 "end": { 1778 "line": 31, 1779 "column": 31 1780 } 1781 } 1782 }, 1783 "loc": { 1784 "start": { 1785 "line": 1, 1786 "column": 1 1787 }, 1788 "end": { 1789 "line": 1, 1790 "column": 1 1791 } 1792 } 1793 } 1794 ], 1795 "loc": { 1796 "start": { 1797 "line": 1, 1798 "column": 1 1799 }, 1800 "end": { 1801 "line": 1, 1802 "column": 1 1803 } 1804 } 1805 }, 1806 "loc": { 1807 "start": { 1808 "line": 31, 1809 "column": 9 1810 }, 1811 "end": { 1812 "line": 31, 1813 "column": 31 1814 } 1815 } 1816 }, 1817 "loc": { 1818 "start": { 1819 "line": 31, 1820 "column": 9 1821 }, 1822 "end": { 1823 "line": 31, 1824 "column": 31 1825 } 1826 } 1827 }, 1828 { 1829 "type": "ArrowFunctionExpression", 1830 "function": { 1831 "type": "ScriptFunction", 1832 "id": null, 1833 "generator": false, 1834 "async": false, 1835 "expression": true, 1836 "params": [ 1837 { 1838 "type": "ETSParameterExpression", 1839 "name": { 1840 "type": "Identifier", 1841 "name": "p", 1842 "typeAnnotation": { 1843 "type": "ETSPrimitiveType", 1844 "loc": { 1845 "start": { 1846 "line": 32, 1847 "column": 13 1848 }, 1849 "end": { 1850 "line": 32, 1851 "column": 16 1852 } 1853 } 1854 }, 1855 "decorators": [], 1856 "loc": { 1857 "start": { 1858 "line": 32, 1859 "column": 10 1860 }, 1861 "end": { 1862 "line": 32, 1863 "column": 16 1864 } 1865 } 1866 }, 1867 "loc": { 1868 "start": { 1869 "line": 32, 1870 "column": 10 1871 }, 1872 "end": { 1873 "line": 32, 1874 "column": 16 1875 } 1876 } 1877 } 1878 ], 1879 "returnType": { 1880 "type": "ETSPrimitiveType", 1881 "loc": { 1882 "start": { 1883 "line": 32, 1884 "column": 19 1885 }, 1886 "end": { 1887 "line": 32, 1888 "column": 22 1889 } 1890 } 1891 }, 1892 "body": { 1893 "type": "BlockStatement", 1894 "statements": [ 1895 { 1896 "type": "ReturnStatement", 1897 "argument": { 1898 "type": "BinaryExpression", 1899 "operator": "+", 1900 "left": { 1901 "type": "Identifier", 1902 "name": "p", 1903 "decorators": [], 1904 "loc": { 1905 "start": { 1906 "line": 32, 1907 "column": 26 1908 }, 1909 "end": { 1910 "line": 32, 1911 "column": 27 1912 } 1913 } 1914 }, 1915 "right": { 1916 "type": "NumberLiteral", 1917 "value": 9, 1918 "loc": { 1919 "start": { 1920 "line": 32, 1921 "column": 30 1922 }, 1923 "end": { 1924 "line": 32, 1925 "column": 31 1926 } 1927 } 1928 }, 1929 "loc": { 1930 "start": { 1931 "line": 32, 1932 "column": 26 1933 }, 1934 "end": { 1935 "line": 32, 1936 "column": 31 1937 } 1938 } 1939 }, 1940 "loc": { 1941 "start": { 1942 "line": 1, 1943 "column": 1 1944 }, 1945 "end": { 1946 "line": 1, 1947 "column": 1 1948 } 1949 } 1950 } 1951 ], 1952 "loc": { 1953 "start": { 1954 "line": 1, 1955 "column": 1 1956 }, 1957 "end": { 1958 "line": 1, 1959 "column": 1 1960 } 1961 } 1962 }, 1963 "loc": { 1964 "start": { 1965 "line": 32, 1966 "column": 9 1967 }, 1968 "end": { 1969 "line": 32, 1970 "column": 31 1971 } 1972 } 1973 }, 1974 "loc": { 1975 "start": { 1976 "line": 32, 1977 "column": 9 1978 }, 1979 "end": { 1980 "line": 32, 1981 "column": 31 1982 } 1983 } 1984 }, 1985 { 1986 "type": "ArrowFunctionExpression", 1987 "function": { 1988 "type": "ScriptFunction", 1989 "id": null, 1990 "generator": false, 1991 "async": false, 1992 "expression": true, 1993 "params": [ 1994 { 1995 "type": "ETSParameterExpression", 1996 "name": { 1997 "type": "Identifier", 1998 "name": "p", 1999 "typeAnnotation": { 2000 "type": "ETSPrimitiveType", 2001 "loc": { 2002 "start": { 2003 "line": 33, 2004 "column": 13 2005 }, 2006 "end": { 2007 "line": 33, 2008 "column": 16 2009 } 2010 } 2011 }, 2012 "decorators": [], 2013 "loc": { 2014 "start": { 2015 "line": 33, 2016 "column": 10 2017 }, 2018 "end": { 2019 "line": 33, 2020 "column": 16 2021 } 2022 } 2023 }, 2024 "loc": { 2025 "start": { 2026 "line": 33, 2027 "column": 10 2028 }, 2029 "end": { 2030 "line": 33, 2031 "column": 16 2032 } 2033 } 2034 } 2035 ], 2036 "returnType": { 2037 "type": "ETSPrimitiveType", 2038 "loc": { 2039 "start": { 2040 "line": 33, 2041 "column": 19 2042 }, 2043 "end": { 2044 "line": 33, 2045 "column": 22 2046 } 2047 } 2048 }, 2049 "body": { 2050 "type": "BlockStatement", 2051 "statements": [ 2052 { 2053 "type": "ReturnStatement", 2054 "argument": { 2055 "type": "BinaryExpression", 2056 "operator": "+", 2057 "left": { 2058 "type": "Identifier", 2059 "name": "p", 2060 "decorators": [], 2061 "loc": { 2062 "start": { 2063 "line": 33, 2064 "column": 26 2065 }, 2066 "end": { 2067 "line": 33, 2068 "column": 27 2069 } 2070 } 2071 }, 2072 "right": { 2073 "type": "NumberLiteral", 2074 "value": 0, 2075 "loc": { 2076 "start": { 2077 "line": 33, 2078 "column": 30 2079 }, 2080 "end": { 2081 "line": 33, 2082 "column": 31 2083 } 2084 } 2085 }, 2086 "loc": { 2087 "start": { 2088 "line": 33, 2089 "column": 26 2090 }, 2091 "end": { 2092 "line": 33, 2093 "column": 31 2094 } 2095 } 2096 }, 2097 "loc": { 2098 "start": { 2099 "line": 1, 2100 "column": 1 2101 }, 2102 "end": { 2103 "line": 1, 2104 "column": 1 2105 } 2106 } 2107 } 2108 ], 2109 "loc": { 2110 "start": { 2111 "line": 1, 2112 "column": 1 2113 }, 2114 "end": { 2115 "line": 1, 2116 "column": 1 2117 } 2118 } 2119 }, 2120 "loc": { 2121 "start": { 2122 "line": 33, 2123 "column": 9 2124 }, 2125 "end": { 2126 "line": 33, 2127 "column": 31 2128 } 2129 } 2130 }, 2131 "loc": { 2132 "start": { 2133 "line": 33, 2134 "column": 9 2135 }, 2136 "end": { 2137 "line": 33, 2138 "column": 31 2139 } 2140 } 2141 } 2142 ], 2143 "loc": { 2144 "start": { 2145 "line": 23, 2146 "column": 10 2147 }, 2148 "end": { 2149 "line": 34, 2150 "column": 6 2151 } 2152 } 2153 }, 2154 "loc": { 2155 "start": { 2156 "line": 23, 2157 "column": 5 2158 }, 2159 "end": { 2160 "line": 34, 2161 "column": 6 2162 } 2163 } 2164 }, 2165 "loc": { 2166 "start": { 2167 "line": 23, 2168 "column": 5 2169 }, 2170 "end": { 2171 "line": 34, 2172 "column": 6 2173 } 2174 } 2175 }, 2176 { 2177 "type": "VariableDeclaration", 2178 "declarations": [ 2179 { 2180 "type": "VariableDeclarator", 2181 "id": { 2182 "type": "Identifier", 2183 "name": "ps", 2184 "typeAnnotation": { 2185 "type": "TSArrayType", 2186 "elementType": { 2187 "type": "ETSTypeReference", 2188 "part": { 2189 "type": "ETSTypeReferencePart", 2190 "name": { 2191 "type": "Identifier", 2192 "name": "Object", 2193 "decorators": [], 2194 "loc": { 2195 "start": { 2196 "line": 37, 2197 "column": 13 2198 }, 2199 "end": { 2200 "line": 37, 2201 "column": 19 2202 } 2203 } 2204 }, 2205 "loc": { 2206 "start": { 2207 "line": 37, 2208 "column": 13 2209 }, 2210 "end": { 2211 "line": 37, 2212 "column": 20 2213 } 2214 } 2215 }, 2216 "loc": { 2217 "start": { 2218 "line": 37, 2219 "column": 13 2220 }, 2221 "end": { 2222 "line": 37, 2223 "column": 20 2224 } 2225 } 2226 }, 2227 "loc": { 2228 "start": { 2229 "line": 37, 2230 "column": 22 2231 }, 2232 "end": { 2233 "line": 37, 2234 "column": 23 2235 } 2236 } 2237 }, 2238 "decorators": [], 2239 "loc": { 2240 "start": { 2241 "line": 37, 2242 "column": 9 2243 }, 2244 "end": { 2245 "line": 37, 2246 "column": 11 2247 } 2248 } 2249 }, 2250 "init": { 2251 "type": "ETSNewArrayInstanceExpression", 2252 "typeReference": { 2253 "type": "ETSTypeReference", 2254 "part": { 2255 "type": "ETSTypeReferencePart", 2256 "name": { 2257 "type": "Identifier", 2258 "name": "Object", 2259 "decorators": [], 2260 "loc": { 2261 "start": { 2262 "line": 37, 2263 "column": 28 2264 }, 2265 "end": { 2266 "line": 37, 2267 "column": 34 2268 } 2269 } 2270 }, 2271 "loc": { 2272 "start": { 2273 "line": 37, 2274 "column": 28 2275 }, 2276 "end": { 2277 "line": 37, 2278 "column": 35 2279 } 2280 } 2281 }, 2282 "loc": { 2283 "start": { 2284 "line": 37, 2285 "column": 28 2286 }, 2287 "end": { 2288 "line": 37, 2289 "column": 35 2290 } 2291 } 2292 }, 2293 "dimension": { 2294 "type": "NumberLiteral", 2295 "value": 10, 2296 "loc": { 2297 "start": { 2298 "line": 37, 2299 "column": 35 2300 }, 2301 "end": { 2302 "line": 37, 2303 "column": 37 2304 } 2305 } 2306 }, 2307 "loc": { 2308 "start": { 2309 "line": 37, 2310 "column": 24 2311 }, 2312 "end": { 2313 "line": 37, 2314 "column": 38 2315 } 2316 } 2317 }, 2318 "loc": { 2319 "start": { 2320 "line": 37, 2321 "column": 9 2322 }, 2323 "end": { 2324 "line": 37, 2325 "column": 38 2326 } 2327 } 2328 } 2329 ], 2330 "kind": "let", 2331 "loc": { 2332 "start": { 2333 "line": 37, 2334 "column": 5 2335 }, 2336 "end": { 2337 "line": 37, 2338 "column": 38 2339 } 2340 } 2341 }, 2342 { 2343 "type": "ForUpdateStatement", 2344 "init": { 2345 "type": "VariableDeclaration", 2346 "declarations": [ 2347 { 2348 "type": "VariableDeclarator", 2349 "id": { 2350 "type": "Identifier", 2351 "name": "i", 2352 "decorators": [], 2353 "loc": { 2354 "start": { 2355 "line": 38, 2356 "column": 14 2357 }, 2358 "end": { 2359 "line": 38, 2360 "column": 15 2361 } 2362 } 2363 }, 2364 "init": { 2365 "type": "NumberLiteral", 2366 "value": 0, 2367 "loc": { 2368 "start": { 2369 "line": 38, 2370 "column": 18 2371 }, 2372 "end": { 2373 "line": 38, 2374 "column": 19 2375 } 2376 } 2377 }, 2378 "loc": { 2379 "start": { 2380 "line": 38, 2381 "column": 14 2382 }, 2383 "end": { 2384 "line": 38, 2385 "column": 19 2386 } 2387 } 2388 } 2389 ], 2390 "kind": "let", 2391 "loc": { 2392 "start": { 2393 "line": 38, 2394 "column": 10 2395 }, 2396 "end": { 2397 "line": 38, 2398 "column": 19 2399 } 2400 } 2401 }, 2402 "test": { 2403 "type": "BinaryExpression", 2404 "operator": "<", 2405 "left": { 2406 "type": "Identifier", 2407 "name": "i", 2408 "decorators": [], 2409 "loc": { 2410 "start": { 2411 "line": 38, 2412 "column": 21 2413 }, 2414 "end": { 2415 "line": 38, 2416 "column": 22 2417 } 2418 } 2419 }, 2420 "right": { 2421 "type": "NumberLiteral", 2422 "value": 10, 2423 "loc": { 2424 "start": { 2425 "line": 38, 2426 "column": 25 2427 }, 2428 "end": { 2429 "line": 38, 2430 "column": 27 2431 } 2432 } 2433 }, 2434 "loc": { 2435 "start": { 2436 "line": 38, 2437 "column": 21 2438 }, 2439 "end": { 2440 "line": 38, 2441 "column": 27 2442 } 2443 } 2444 }, 2445 "update": { 2446 "type": "UpdateExpression", 2447 "operator": "++", 2448 "prefix": false, 2449 "argument": { 2450 "type": "Identifier", 2451 "name": "i", 2452 "decorators": [], 2453 "loc": { 2454 "start": { 2455 "line": 38, 2456 "column": 29 2457 }, 2458 "end": { 2459 "line": 38, 2460 "column": 30 2461 } 2462 } 2463 }, 2464 "loc": { 2465 "start": { 2466 "line": 38, 2467 "column": 29 2468 }, 2469 "end": { 2470 "line": 38, 2471 "column": 32 2472 } 2473 } 2474 }, 2475 "body": { 2476 "type": "BlockStatement", 2477 "statements": [ 2478 { 2479 "type": "ExpressionStatement", 2480 "expression": { 2481 "type": "AssignmentExpression", 2482 "operator": "=", 2483 "left": { 2484 "type": "MemberExpression", 2485 "object": { 2486 "type": "Identifier", 2487 "name": "ps", 2488 "decorators": [], 2489 "loc": { 2490 "start": { 2491 "line": 39, 2492 "column": 9 2493 }, 2494 "end": { 2495 "line": 39, 2496 "column": 11 2497 } 2498 } 2499 }, 2500 "property": { 2501 "type": "Identifier", 2502 "name": "i", 2503 "decorators": [], 2504 "loc": { 2505 "start": { 2506 "line": 39, 2507 "column": 12 2508 }, 2509 "end": { 2510 "line": 39, 2511 "column": 13 2512 } 2513 } 2514 }, 2515 "computed": true, 2516 "optional": false, 2517 "loc": { 2518 "start": { 2519 "line": 39, 2520 "column": 9 2521 }, 2522 "end": { 2523 "line": 39, 2524 "column": 14 2525 } 2526 } 2527 }, 2528 "right": { 2529 "type": "ETSLaunchExpression", 2530 "expr": { 2531 "type": "CallExpression", 2532 "callee": { 2533 "type": "Identifier", 2534 "name": "foo", 2535 "decorators": [], 2536 "loc": { 2537 "start": { 2538 "line": 39, 2539 "column": 24 2540 }, 2541 "end": { 2542 "line": 39, 2543 "column": 27 2544 } 2545 } 2546 }, 2547 "arguments": [ 2548 { 2549 "type": "Identifier", 2550 "name": "i", 2551 "decorators": [], 2552 "loc": { 2553 "start": { 2554 "line": 39, 2555 "column": 28 2556 }, 2557 "end": { 2558 "line": 39, 2559 "column": 29 2560 } 2561 } 2562 } 2563 ], 2564 "optional": false, 2565 "loc": { 2566 "start": { 2567 "line": 39, 2568 "column": 24 2569 }, 2570 "end": { 2571 "line": 39, 2572 "column": 30 2573 } 2574 } 2575 }, 2576 "loc": { 2577 "start": { 2578 "line": 39, 2579 "column": 17 2580 }, 2581 "end": { 2582 "line": 39, 2583 "column": 30 2584 } 2585 } 2586 }, 2587 "loc": { 2588 "start": { 2589 "line": 39, 2590 "column": 9 2591 }, 2592 "end": { 2593 "line": 39, 2594 "column": 30 2595 } 2596 } 2597 }, 2598 "loc": { 2599 "start": { 2600 "line": 39, 2601 "column": 9 2602 }, 2603 "end": { 2604 "line": 39, 2605 "column": 30 2606 } 2607 } 2608 } 2609 ], 2610 "loc": { 2611 "start": { 2612 "line": 38, 2613 "column": 34 2614 }, 2615 "end": { 2616 "line": 40, 2617 "column": 6 2618 } 2619 } 2620 }, 2621 "loc": { 2622 "start": { 2623 "line": 38, 2624 "column": 5 2625 }, 2626 "end": { 2627 "line": 40, 2628 "column": 6 2629 } 2630 } 2631 }, 2632 { 2633 "type": "VariableDeclaration", 2634 "declarations": [ 2635 { 2636 "type": "VariableDeclarator", 2637 "id": { 2638 "type": "Identifier", 2639 "name": "cnt", 2640 "decorators": [], 2641 "loc": { 2642 "start": { 2643 "line": 42, 2644 "column": 9 2645 }, 2646 "end": { 2647 "line": 42, 2648 "column": 12 2649 } 2650 } 2651 }, 2652 "init": { 2653 "type": "NumberLiteral", 2654 "value": 0, 2655 "loc": { 2656 "start": { 2657 "line": 42, 2658 "column": 15 2659 }, 2660 "end": { 2661 "line": 42, 2662 "column": 16 2663 } 2664 } 2665 }, 2666 "loc": { 2667 "start": { 2668 "line": 42, 2669 "column": 9 2670 }, 2671 "end": { 2672 "line": 42, 2673 "column": 16 2674 } 2675 } 2676 } 2677 ], 2678 "kind": "let", 2679 "loc": { 2680 "start": { 2681 "line": 42, 2682 "column": 5 2683 }, 2684 "end": { 2685 "line": 42, 2686 "column": 16 2687 } 2688 } 2689 }, 2690 { 2691 "type": "ForUpdateStatement", 2692 "init": { 2693 "type": "VariableDeclaration", 2694 "declarations": [ 2695 { 2696 "type": "VariableDeclarator", 2697 "id": { 2698 "type": "Identifier", 2699 "name": "i", 2700 "decorators": [], 2701 "loc": { 2702 "start": { 2703 "line": 43, 2704 "column": 14 2705 }, 2706 "end": { 2707 "line": 43, 2708 "column": 15 2709 } 2710 } 2711 }, 2712 "init": { 2713 "type": "NumberLiteral", 2714 "value": 9, 2715 "loc": { 2716 "start": { 2717 "line": 43, 2718 "column": 18 2719 }, 2720 "end": { 2721 "line": 43, 2722 "column": 19 2723 } 2724 } 2725 }, 2726 "loc": { 2727 "start": { 2728 "line": 43, 2729 "column": 14 2730 }, 2731 "end": { 2732 "line": 43, 2733 "column": 19 2734 } 2735 } 2736 } 2737 ], 2738 "kind": "let", 2739 "loc": { 2740 "start": { 2741 "line": 43, 2742 "column": 10 2743 }, 2744 "end": { 2745 "line": 43, 2746 "column": 19 2747 } 2748 } 2749 }, 2750 "test": { 2751 "type": "BinaryExpression", 2752 "operator": ">=", 2753 "left": { 2754 "type": "Identifier", 2755 "name": "i", 2756 "decorators": [], 2757 "loc": { 2758 "start": { 2759 "line": 43, 2760 "column": 21 2761 }, 2762 "end": { 2763 "line": 43, 2764 "column": 22 2765 } 2766 } 2767 }, 2768 "right": { 2769 "type": "NumberLiteral", 2770 "value": 0, 2771 "loc": { 2772 "start": { 2773 "line": 43, 2774 "column": 26 2775 }, 2776 "end": { 2777 "line": 43, 2778 "column": 27 2779 } 2780 } 2781 }, 2782 "loc": { 2783 "start": { 2784 "line": 43, 2785 "column": 21 2786 }, 2787 "end": { 2788 "line": 43, 2789 "column": 27 2790 } 2791 } 2792 }, 2793 "update": { 2794 "type": "UpdateExpression", 2795 "operator": "--", 2796 "prefix": false, 2797 "argument": { 2798 "type": "Identifier", 2799 "name": "i", 2800 "decorators": [], 2801 "loc": { 2802 "start": { 2803 "line": 43, 2804 "column": 29 2805 }, 2806 "end": { 2807 "line": 43, 2808 "column": 30 2809 } 2810 } 2811 }, 2812 "loc": { 2813 "start": { 2814 "line": 43, 2815 "column": 29 2816 }, 2817 "end": { 2818 "line": 43, 2819 "column": 32 2820 } 2821 } 2822 }, 2823 "body": { 2824 "type": "BlockStatement", 2825 "statements": [ 2826 { 2827 "type": "ExpressionStatement", 2828 "expression": { 2829 "type": "AssignmentExpression", 2830 "operator": "+=", 2831 "left": { 2832 "type": "Identifier", 2833 "name": "cnt", 2834 "decorators": [], 2835 "loc": { 2836 "start": { 2837 "line": 44, 2838 "column": 9 2839 }, 2840 "end": { 2841 "line": 44, 2842 "column": 12 2843 } 2844 } 2845 }, 2846 "right": { 2847 "type": "CallExpression", 2848 "callee": { 2849 "type": "AwaitExpression", 2850 "argument": { 2851 "type": "TSAsExpression", 2852 "expression": { 2853 "type": "MemberExpression", 2854 "object": { 2855 "type": "Identifier", 2856 "name": "ps", 2857 "decorators": [], 2858 "loc": { 2859 "start": { 2860 "line": 44, 2861 "column": 23 2862 }, 2863 "end": { 2864 "line": 44, 2865 "column": 25 2866 } 2867 } 2868 }, 2869 "property": { 2870 "type": "Identifier", 2871 "name": "i", 2872 "decorators": [], 2873 "loc": { 2874 "start": { 2875 "line": 44, 2876 "column": 26 2877 }, 2878 "end": { 2879 "line": 44, 2880 "column": 27 2881 } 2882 } 2883 }, 2884 "computed": true, 2885 "optional": false, 2886 "loc": { 2887 "start": { 2888 "line": 44, 2889 "column": 23 2890 }, 2891 "end": { 2892 "line": 44, 2893 "column": 28 2894 } 2895 } 2896 }, 2897 "typeAnnotation": { 2898 "type": "ETSTypeReference", 2899 "part": { 2900 "type": "ETSTypeReferencePart", 2901 "name": { 2902 "type": "Identifier", 2903 "name": "Promise", 2904 "decorators": [], 2905 "loc": { 2906 "start": { 2907 "line": 44, 2908 "column": 32 2909 }, 2910 "end": { 2911 "line": 44, 2912 "column": 39 2913 } 2914 } 2915 }, 2916 "typeParams": { 2917 "type": "TSTypeParameterInstantiation", 2918 "params": [ 2919 { 2920 "type": "ETSFunctionType", 2921 "params": [ 2922 { 2923 "type": "ETSParameterExpression", 2924 "name": { 2925 "type": "Identifier", 2926 "name": "p", 2927 "typeAnnotation": { 2928 "type": "ETSPrimitiveType", 2929 "loc": { 2930 "start": { 2931 "line": 44, 2932 "column": 44 2933 }, 2934 "end": { 2935 "line": 44, 2936 "column": 47 2937 } 2938 } 2939 }, 2940 "decorators": [], 2941 "loc": { 2942 "start": { 2943 "line": 44, 2944 "column": 41 2945 }, 2946 "end": { 2947 "line": 44, 2948 "column": 47 2949 } 2950 } 2951 }, 2952 "loc": { 2953 "start": { 2954 "line": 44, 2955 "column": 41 2956 }, 2957 "end": { 2958 "line": 44, 2959 "column": 47 2960 } 2961 } 2962 } 2963 ], 2964 "returnType": { 2965 "type": "ETSPrimitiveType", 2966 "loc": { 2967 "start": { 2968 "line": 44, 2969 "column": 52 2970 }, 2971 "end": { 2972 "line": 44, 2973 "column": 55 2974 } 2975 } 2976 }, 2977 "loc": { 2978 "start": { 2979 "line": 44, 2980 "column": 40 2981 }, 2982 "end": { 2983 "line": 44, 2984 "column": 55 2985 } 2986 } 2987 } 2988 ], 2989 "loc": { 2990 "start": { 2991 "line": 44, 2992 "column": 39 2993 }, 2994 "end": { 2995 "line": 44, 2996 "column": 56 2997 } 2998 } 2999 }, 3000 "loc": { 3001 "start": { 3002 "line": 44, 3003 "column": 32 3004 }, 3005 "end": { 3006 "line": 44, 3007 "column": 57 3008 } 3009 } 3010 }, 3011 "loc": { 3012 "start": { 3013 "line": 44, 3014 "column": 32 3015 }, 3016 "end": { 3017 "line": 44, 3018 "column": 57 3019 } 3020 } 3021 }, 3022 "loc": { 3023 "start": { 3024 "line": 44, 3025 "column": 23 3026 }, 3027 "end": { 3028 "line": 44, 3029 "column": 28 3030 } 3031 } 3032 }, 3033 "loc": { 3034 "start": { 3035 "line": 44, 3036 "column": 16 3037 }, 3038 "end": { 3039 "line": 44, 3040 "column": 57 3041 } 3042 } 3043 }, 3044 "arguments": [ 3045 { 3046 "type": "Identifier", 3047 "name": "i", 3048 "decorators": [], 3049 "loc": { 3050 "start": { 3051 "line": 44, 3052 "column": 58 3053 }, 3054 "end": { 3055 "line": 44, 3056 "column": 59 3057 } 3058 } 3059 } 3060 ], 3061 "optional": false, 3062 "loc": { 3063 "start": { 3064 "line": 44, 3065 "column": 16 3066 }, 3067 "end": { 3068 "line": 44, 3069 "column": 60 3070 } 3071 } 3072 }, 3073 "loc": { 3074 "start": { 3075 "line": 44, 3076 "column": 9 3077 }, 3078 "end": { 3079 "line": 44, 3080 "column": 60 3081 } 3082 } 3083 }, 3084 "loc": { 3085 "start": { 3086 "line": 44, 3087 "column": 9 3088 }, 3089 "end": { 3090 "line": 44, 3091 "column": 60 3092 } 3093 } 3094 } 3095 ], 3096 "loc": { 3097 "start": { 3098 "line": 43, 3099 "column": 34 3100 }, 3101 "end": { 3102 "line": 45, 3103 "column": 6 3104 } 3105 } 3106 }, 3107 "loc": { 3108 "start": { 3109 "line": 43, 3110 "column": 5 3111 }, 3112 "end": { 3113 "line": 45, 3114 "column": 6 3115 } 3116 } 3117 }, 3118 { 3119 "type": "AssertStatement", 3120 "test": { 3121 "type": "BinaryExpression", 3122 "operator": "==", 3123 "left": { 3124 "type": "Identifier", 3125 "name": "cnt", 3126 "decorators": [], 3127 "loc": { 3128 "start": { 3129 "line": 46, 3130 "column": 12 3131 }, 3132 "end": { 3133 "line": 46, 3134 "column": 15 3135 } 3136 } 3137 }, 3138 "right": { 3139 "type": "NumberLiteral", 3140 "value": 90, 3141 "loc": { 3142 "start": { 3143 "line": 46, 3144 "column": 19 3145 }, 3146 "end": { 3147 "line": 46, 3148 "column": 21 3149 } 3150 } 3151 }, 3152 "loc": { 3153 "start": { 3154 "line": 46, 3155 "column": 12 3156 }, 3157 "end": { 3158 "line": 46, 3159 "column": 21 3160 } 3161 } 3162 }, 3163 "second": null, 3164 "loc": { 3165 "start": { 3166 "line": 46, 3167 "column": 5 3168 }, 3169 "end": { 3170 "line": 46, 3171 "column": 21 3172 } 3173 } 3174 } 3175 ], 3176 "loc": { 3177 "start": { 3178 "line": 22, 3179 "column": 17 3180 }, 3181 "end": { 3182 "line": 47, 3183 "column": 2 3184 } 3185 } 3186 }, 3187 "loc": { 3188 "start": { 3189 "line": 22, 3190 "column": 14 3191 }, 3192 "end": { 3193 "line": 47, 3194 "column": 2 3195 } 3196 } 3197 }, 3198 "loc": { 3199 "start": { 3200 "line": 22, 3201 "column": 14 3202 }, 3203 "end": { 3204 "line": 47, 3205 "column": 2 3206 } 3207 } 3208 }, 3209 "overloads": [], 3210 "decorators": [], 3211 "loc": { 3212 "start": { 3213 "line": 22, 3214 "column": 1 3215 }, 3216 "end": { 3217 "line": 47, 3218 "column": 2 3219 } 3220 } 3221 } 3222 ], 3223 "loc": { 3224 "start": { 3225 "line": 1, 3226 "column": 1 3227 }, 3228 "end": { 3229 "line": 1, 3230 "column": 1 3231 } 3232 } 3233 }, 3234 "loc": { 3235 "start": { 3236 "line": 1, 3237 "column": 1 3238 }, 3239 "end": { 3240 "line": 1, 3241 "column": 1 3242 } 3243 } 3244 } 3245 ], 3246 "loc": { 3247 "start": { 3248 "line": 1, 3249 "column": 1 3250 }, 3251 "end": { 3252 "line": 48, 3253 "column": 1 3254 } 3255 } 3256} 3257