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