1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "TSTypeAliasDeclaration", 6 "id": { 7 "type": "Identifier", 8 "name": "BenchmarkFunc", 9 "decorators": [], 10 "loc": { 11 "start": { 12 "line": 16, 13 "column": 6, 14 "program": "memberExprInLambda.ets" 15 }, 16 "end": { 17 "line": 16, 18 "column": 19, 19 "program": "memberExprInLambda.ets" 20 } 21 } 22 }, 23 "typeAnnotation": { 24 "type": "ETSFunctionType", 25 "params": [], 26 "returnType": { 27 "type": "ETSPrimitiveType", 28 "loc": { 29 "start": { 30 "line": 16, 31 "column": 28, 32 "program": "memberExprInLambda.ets" 33 }, 34 "end": { 35 "line": 16, 36 "column": 32, 37 "program": "memberExprInLambda.ets" 38 } 39 } 40 }, 41 "loc": { 42 "start": { 43 "line": 16, 44 "column": 22, 45 "program": "memberExprInLambda.ets" 46 }, 47 "end": { 48 "line": 16, 49 "column": 32, 50 "program": "memberExprInLambda.ets" 51 } 52 } 53 }, 54 "loc": { 55 "start": { 56 "line": 16, 57 "column": 1, 58 "program": "memberExprInLambda.ets" 59 }, 60 "end": { 61 "line": 18, 62 "column": 9, 63 "program": "memberExprInLambda.ets" 64 } 65 } 66 }, 67 { 68 "type": "ClassDeclaration", 69 "definition": { 70 "id": { 71 "type": "Identifier", 72 "name": "ETSGLOBAL", 73 "decorators": [], 74 "loc": { 75 "start": { 76 "line": 1, 77 "column": 1, 78 "program": "memberExprInLambda.ets" 79 }, 80 "end": { 81 "line": 1, 82 "column": 1, 83 "program": "memberExprInLambda.ets" 84 } 85 } 86 }, 87 "superClass": null, 88 "implements": [], 89 "body": [ 90 { 91 "type": "MethodDefinition", 92 "key": { 93 "type": "Identifier", 94 "name": "main", 95 "decorators": [], 96 "loc": { 97 "start": { 98 "line": 1, 99 "column": 1, 100 "program": null 101 }, 102 "end": { 103 "line": 1, 104 "column": 1, 105 "program": null 106 } 107 } 108 }, 109 "kind": "method", 110 "accessibility": "public", 111 "static": true, 112 "optional": false, 113 "computed": false, 114 "value": { 115 "type": "FunctionExpression", 116 "function": { 117 "type": "ScriptFunction", 118 "id": { 119 "type": "Identifier", 120 "name": "main", 121 "decorators": [], 122 "loc": { 123 "start": { 124 "line": 1, 125 "column": 1, 126 "program": null 127 }, 128 "end": { 129 "line": 1, 130 "column": 1, 131 "program": null 132 } 133 } 134 }, 135 "generator": false, 136 "async": false, 137 "expression": false, 138 "params": [], 139 "body": { 140 "type": "BlockStatement", 141 "statements": [], 142 "loc": { 143 "start": { 144 "line": 1, 145 "column": 1, 146 "program": null 147 }, 148 "end": { 149 "line": 1, 150 "column": 1, 151 "program": null 152 } 153 } 154 }, 155 "loc": { 156 "start": { 157 "line": 1, 158 "column": 1, 159 "program": null 160 }, 161 "end": { 162 "line": 1, 163 "column": 1, 164 "program": null 165 } 166 } 167 }, 168 "loc": { 169 "start": { 170 "line": 1, 171 "column": 1, 172 "program": null 173 }, 174 "end": { 175 "line": 1, 176 "column": 1, 177 "program": null 178 } 179 } 180 }, 181 "overloads": [], 182 "decorators": [], 183 "loc": { 184 "start": { 185 "line": 1, 186 "column": 1, 187 "program": "memberExprInLambda.ets" 188 }, 189 "end": { 190 "line": 1, 191 "column": 1, 192 "program": "memberExprInLambda.ets" 193 } 194 } 195 }, 196 { 197 "type": "MethodDefinition", 198 "key": { 199 "type": "Identifier", 200 "name": "_$init$_", 201 "decorators": [], 202 "loc": { 203 "start": { 204 "line": 1, 205 "column": 1, 206 "program": null 207 }, 208 "end": { 209 "line": 1, 210 "column": 1, 211 "program": null 212 } 213 } 214 }, 215 "kind": "method", 216 "accessibility": "public", 217 "static": true, 218 "optional": false, 219 "computed": false, 220 "value": { 221 "type": "FunctionExpression", 222 "function": { 223 "type": "ScriptFunction", 224 "id": { 225 "type": "Identifier", 226 "name": "_$init$_", 227 "decorators": [], 228 "loc": { 229 "start": { 230 "line": 1, 231 "column": 1, 232 "program": null 233 }, 234 "end": { 235 "line": 1, 236 "column": 1, 237 "program": null 238 } 239 } 240 }, 241 "generator": false, 242 "async": false, 243 "expression": false, 244 "params": [], 245 "body": { 246 "type": "BlockStatement", 247 "statements": [], 248 "loc": { 249 "start": { 250 "line": 1, 251 "column": 1, 252 "program": null 253 }, 254 "end": { 255 "line": 1, 256 "column": 1, 257 "program": null 258 } 259 } 260 }, 261 "loc": { 262 "start": { 263 "line": 1, 264 "column": 1, 265 "program": null 266 }, 267 "end": { 268 "line": 1, 269 "column": 1, 270 "program": null 271 } 272 } 273 }, 274 "loc": { 275 "start": { 276 "line": 1, 277 "column": 1, 278 "program": null 279 }, 280 "end": { 281 "line": 1, 282 "column": 1, 283 "program": null 284 } 285 } 286 }, 287 "overloads": [], 288 "decorators": [], 289 "loc": { 290 "start": { 291 "line": 1, 292 "column": 1, 293 "program": "memberExprInLambda.ets" 294 }, 295 "end": { 296 "line": 1, 297 "column": 1, 298 "program": "memberExprInLambda.ets" 299 } 300 } 301 }, 302 { 303 "type": "MethodDefinition", 304 "key": { 305 "type": "Identifier", 306 "name": "useArrayParamInLambdaFunc", 307 "decorators": [], 308 "loc": { 309 "start": { 310 "line": 18, 311 "column": 10, 312 "program": "memberExprInLambda.ets" 313 }, 314 "end": { 315 "line": 18, 316 "column": 35, 317 "program": "memberExprInLambda.ets" 318 } 319 } 320 }, 321 "kind": "method", 322 "accessibility": "public", 323 "static": true, 324 "optional": false, 325 "computed": false, 326 "value": { 327 "type": "FunctionExpression", 328 "function": { 329 "type": "ScriptFunction", 330 "id": { 331 "type": "Identifier", 332 "name": "useArrayParamInLambdaFunc", 333 "decorators": [], 334 "loc": { 335 "start": { 336 "line": 18, 337 "column": 10, 338 "program": "memberExprInLambda.ets" 339 }, 340 "end": { 341 "line": 18, 342 "column": 35, 343 "program": "memberExprInLambda.ets" 344 } 345 } 346 }, 347 "generator": false, 348 "async": false, 349 "expression": false, 350 "params": [], 351 "returnType": { 352 "type": "ETSPrimitiveType", 353 "loc": { 354 "start": { 355 "line": 18, 356 "column": 39, 357 "program": "memberExprInLambda.ets" 358 }, 359 "end": { 360 "line": 18, 361 "column": 43, 362 "program": "memberExprInLambda.ets" 363 } 364 } 365 }, 366 "body": { 367 "type": "BlockStatement", 368 "statements": [ 369 { 370 "type": "VariableDeclaration", 371 "declarations": [ 372 { 373 "type": "VariableDeclarator", 374 "id": { 375 "type": "Identifier", 376 "name": "arr", 377 "typeAnnotation": { 378 "type": "ETSTypeReference", 379 "part": { 380 "type": "ETSTypeReferencePart", 381 "name": { 382 "type": "Identifier", 383 "name": "Array", 384 "decorators": [], 385 "loc": { 386 "start": { 387 "line": 1, 388 "column": 1, 389 "program": "memberExprInLambda.ets" 390 }, 391 "end": { 392 "line": 1, 393 "column": 3, 394 "program": "memberExprInLambda.ets" 395 } 396 } 397 }, 398 "typeParams": { 399 "type": "TSTypeParameterInstantiation", 400 "params": [ 401 { 402 "type": "ETSTypeReference", 403 "part": { 404 "type": "ETSTypeReferencePart", 405 "name": { 406 "type": "Identifier", 407 "name": "number", 408 "decorators": [], 409 "loc": { 410 "start": { 411 "line": 1, 412 "column": 3, 413 "program": "memberExprInLambda.ets" 414 }, 415 "end": { 416 "line": 1, 417 "column": 3, 418 "program": "memberExprInLambda.ets" 419 } 420 } 421 }, 422 "loc": { 423 "start": { 424 "line": 1, 425 "column": 3, 426 "program": "memberExprInLambda.ets" 427 }, 428 "end": { 429 "line": 1, 430 "column": 3, 431 "program": "memberExprInLambda.ets" 432 } 433 } 434 }, 435 "loc": { 436 "start": { 437 "line": 1, 438 "column": 3, 439 "program": "memberExprInLambda.ets" 440 }, 441 "end": { 442 "line": 1, 443 "column": 3, 444 "program": "memberExprInLambda.ets" 445 } 446 } 447 } 448 ], 449 "loc": { 450 "start": { 451 "line": 1, 452 "column": 3, 453 "program": "memberExprInLambda.ets" 454 }, 455 "end": { 456 "line": 1, 457 "column": 3, 458 "program": "memberExprInLambda.ets" 459 } 460 } 461 }, 462 "loc": { 463 "start": { 464 "line": 1, 465 "column": 1, 466 "program": "memberExprInLambda.ets" 467 }, 468 "end": { 469 "line": 1, 470 "column": 3, 471 "program": "memberExprInLambda.ets" 472 } 473 } 474 }, 475 "loc": { 476 "start": { 477 "line": 19, 478 "column": 22, 479 "program": "memberExprInLambda.ets" 480 }, 481 "end": { 482 "line": 19, 483 "column": 24, 484 "program": "memberExprInLambda.ets" 485 } 486 } 487 }, 488 "decorators": [], 489 "loc": { 490 "start": { 491 "line": 19, 492 "column": 11, 493 "program": "memberExprInLambda.ets" 494 }, 495 "end": { 496 "line": 19, 497 "column": 14, 498 "program": "memberExprInLambda.ets" 499 } 500 } 501 }, 502 "init": { 503 "type": "ArrayExpression", 504 "elements": [ 505 { 506 "type": "NumberLiteral", 507 "value": 1, 508 "loc": { 509 "start": { 510 "line": 19, 511 "column": 28, 512 "program": "memberExprInLambda.ets" 513 }, 514 "end": { 515 "line": 19, 516 "column": 29, 517 "program": "memberExprInLambda.ets" 518 } 519 } 520 }, 521 { 522 "type": "NumberLiteral", 523 "value": 2, 524 "loc": { 525 "start": { 526 "line": 19, 527 "column": 31, 528 "program": "memberExprInLambda.ets" 529 }, 530 "end": { 531 "line": 19, 532 "column": 32, 533 "program": "memberExprInLambda.ets" 534 } 535 } 536 }, 537 { 538 "type": "NumberLiteral", 539 "value": 3, 540 "loc": { 541 "start": { 542 "line": 19, 543 "column": 34, 544 "program": "memberExprInLambda.ets" 545 }, 546 "end": { 547 "line": 19, 548 "column": 35, 549 "program": "memberExprInLambda.ets" 550 } 551 } 552 }, 553 { 554 "type": "NumberLiteral", 555 "value": 4, 556 "loc": { 557 "start": { 558 "line": 19, 559 "column": 37, 560 "program": "memberExprInLambda.ets" 561 }, 562 "end": { 563 "line": 19, 564 "column": 38, 565 "program": "memberExprInLambda.ets" 566 } 567 } 568 } 569 ], 570 "loc": { 571 "start": { 572 "line": 19, 573 "column": 27, 574 "program": "memberExprInLambda.ets" 575 }, 576 "end": { 577 "line": 19, 578 "column": 39, 579 "program": "memberExprInLambda.ets" 580 } 581 } 582 }, 583 "loc": { 584 "start": { 585 "line": 19, 586 "column": 11, 587 "program": "memberExprInLambda.ets" 588 }, 589 "end": { 590 "line": 19, 591 "column": 39, 592 "program": "memberExprInLambda.ets" 593 } 594 } 595 } 596 ], 597 "kind": "const", 598 "loc": { 599 "start": { 600 "line": 19, 601 "column": 5, 602 "program": "memberExprInLambda.ets" 603 }, 604 "end": { 605 "line": 19, 606 "column": 39, 607 "program": "memberExprInLambda.ets" 608 } 609 } 610 }, 611 { 612 "type": "VariableDeclaration", 613 "declarations": [ 614 { 615 "type": "VariableDeclarator", 616 "id": { 617 "type": "Identifier", 618 "name": "ITERATE_FUNC", 619 "typeAnnotation": { 620 "type": "ETSTypeReference", 621 "part": { 622 "type": "ETSTypeReferencePart", 623 "name": { 624 "type": "Identifier", 625 "name": "BenchmarkFunc", 626 "decorators": [], 627 "loc": { 628 "start": { 629 "line": 20, 630 "column": 25, 631 "program": "memberExprInLambda.ets" 632 }, 633 "end": { 634 "line": 20, 635 "column": 38, 636 "program": "memberExprInLambda.ets" 637 } 638 } 639 }, 640 "loc": { 641 "start": { 642 "line": 20, 643 "column": 25, 644 "program": "memberExprInLambda.ets" 645 }, 646 "end": { 647 "line": 20, 648 "column": 40, 649 "program": "memberExprInLambda.ets" 650 } 651 } 652 }, 653 "loc": { 654 "start": { 655 "line": 20, 656 "column": 25, 657 "program": "memberExprInLambda.ets" 658 }, 659 "end": { 660 "line": 20, 661 "column": 40, 662 "program": "memberExprInLambda.ets" 663 } 664 } 665 }, 666 "decorators": [], 667 "loc": { 668 "start": { 669 "line": 20, 670 "column": 11, 671 "program": "memberExprInLambda.ets" 672 }, 673 "end": { 674 "line": 20, 675 "column": 23, 676 "program": "memberExprInLambda.ets" 677 } 678 } 679 }, 680 "init": { 681 "type": "ArrowFunctionExpression", 682 "function": { 683 "type": "ScriptFunction", 684 "id": null, 685 "generator": false, 686 "async": false, 687 "expression": false, 688 "params": [], 689 "body": { 690 "type": "BlockStatement", 691 "statements": [ 692 { 693 "type": "VariableDeclaration", 694 "declarations": [ 695 { 696 "type": "VariableDeclarator", 697 "id": { 698 "type": "Identifier", 699 "name": "length", 700 "decorators": [], 701 "loc": { 702 "start": { 703 "line": 21, 704 "column": 15, 705 "program": "memberExprInLambda.ets" 706 }, 707 "end": { 708 "line": 21, 709 "column": 21, 710 "program": "memberExprInLambda.ets" 711 } 712 } 713 }, 714 "init": { 715 "type": "MemberExpression", 716 "object": { 717 "type": "Identifier", 718 "name": "arr", 719 "decorators": [], 720 "loc": { 721 "start": { 722 "line": 21, 723 "column": 24, 724 "program": "memberExprInLambda.ets" 725 }, 726 "end": { 727 "line": 21, 728 "column": 27, 729 "program": "memberExprInLambda.ets" 730 } 731 } 732 }, 733 "property": { 734 "type": "Identifier", 735 "name": "length", 736 "decorators": [], 737 "loc": { 738 "start": { 739 "line": 21, 740 "column": 28, 741 "program": "memberExprInLambda.ets" 742 }, 743 "end": { 744 "line": 21, 745 "column": 34, 746 "program": "memberExprInLambda.ets" 747 } 748 } 749 }, 750 "computed": false, 751 "optional": false, 752 "loc": { 753 "start": { 754 "line": 21, 755 "column": 24, 756 "program": "memberExprInLambda.ets" 757 }, 758 "end": { 759 "line": 21, 760 "column": 34, 761 "program": "memberExprInLambda.ets" 762 } 763 } 764 }, 765 "loc": { 766 "start": { 767 "line": 21, 768 "column": 15, 769 "program": "memberExprInLambda.ets" 770 }, 771 "end": { 772 "line": 21, 773 "column": 34, 774 "program": "memberExprInLambda.ets" 775 } 776 } 777 } 778 ], 779 "kind": "const", 780 "loc": { 781 "start": { 782 "line": 21, 783 "column": 9, 784 "program": "memberExprInLambda.ets" 785 }, 786 "end": { 787 "line": 21, 788 "column": 35, 789 "program": "memberExprInLambda.ets" 790 } 791 } 792 } 793 ], 794 "loc": { 795 "start": { 796 "line": 20, 797 "column": 47, 798 "program": "memberExprInLambda.ets" 799 }, 800 "end": { 801 "line": 22, 802 "column": 6, 803 "program": "memberExprInLambda.ets" 804 } 805 } 806 }, 807 "loc": { 808 "start": { 809 "line": 20, 810 "column": 41, 811 "program": "memberExprInLambda.ets" 812 }, 813 "end": { 814 "line": 22, 815 "column": 6, 816 "program": "memberExprInLambda.ets" 817 } 818 } 819 }, 820 "loc": { 821 "start": { 822 "line": 20, 823 "column": 41, 824 "program": "memberExprInLambda.ets" 825 }, 826 "end": { 827 "line": 22, 828 "column": 6, 829 "program": "memberExprInLambda.ets" 830 } 831 } 832 }, 833 "loc": { 834 "start": { 835 "line": 20, 836 "column": 11, 837 "program": "memberExprInLambda.ets" 838 }, 839 "end": { 840 "line": 22, 841 "column": 6, 842 "program": "memberExprInLambda.ets" 843 } 844 } 845 } 846 ], 847 "kind": "const", 848 "loc": { 849 "start": { 850 "line": 20, 851 "column": 5, 852 "program": "memberExprInLambda.ets" 853 }, 854 "end": { 855 "line": 22, 856 "column": 6, 857 "program": "memberExprInLambda.ets" 858 } 859 } 860 } 861 ], 862 "loc": { 863 "start": { 864 "line": 18, 865 "column": 44, 866 "program": "memberExprInLambda.ets" 867 }, 868 "end": { 869 "line": 23, 870 "column": 2, 871 "program": "memberExprInLambda.ets" 872 } 873 } 874 }, 875 "loc": { 876 "start": { 877 "line": 18, 878 "column": 10, 879 "program": "memberExprInLambda.ets" 880 }, 881 "end": { 882 "line": 23, 883 "column": 2, 884 "program": "memberExprInLambda.ets" 885 } 886 } 887 }, 888 "loc": { 889 "start": { 890 "line": 18, 891 "column": 10, 892 "program": "memberExprInLambda.ets" 893 }, 894 "end": { 895 "line": 23, 896 "column": 2, 897 "program": "memberExprInLambda.ets" 898 } 899 } 900 }, 901 "overloads": [], 902 "decorators": [], 903 "loc": { 904 "start": { 905 "line": 18, 906 "column": 1, 907 "program": "memberExprInLambda.ets" 908 }, 909 "end": { 910 "line": 23, 911 "column": 2, 912 "program": "memberExprInLambda.ets" 913 } 914 } 915 } 916 ], 917 "loc": { 918 "start": { 919 "line": 1, 920 "column": 1, 921 "program": "memberExprInLambda.ets" 922 }, 923 "end": { 924 "line": 1, 925 "column": 1, 926 "program": "memberExprInLambda.ets" 927 } 928 } 929 }, 930 "loc": { 931 "start": { 932 "line": 1, 933 "column": 1, 934 "program": "memberExprInLambda.ets" 935 }, 936 "end": { 937 "line": 1, 938 "column": 1, 939 "program": "memberExprInLambda.ets" 940 } 941 } 942 } 943 ], 944 "loc": { 945 "start": { 946 "line": 1, 947 "column": 1, 948 "program": "memberExprInLambda.ets" 949 }, 950 "end": { 951 "line": 23, 952 "column": 2, 953 "program": "memberExprInLambda.ets" 954 } 955 } 956} 957