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