1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "ETSGLOBAL", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 1, 14 "column": 1, 15 "program": "array.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "array.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "main", 32 "decorators": [], 33 "loc": { 34 "start": { 35 "line": 1, 36 "column": 1, 37 "program": null 38 }, 39 "end": { 40 "line": 1, 41 "column": 1, 42 "program": null 43 } 44 } 45 }, 46 "kind": "method", 47 "accessibility": "public", 48 "static": true, 49 "optional": false, 50 "computed": false, 51 "value": { 52 "type": "FunctionExpression", 53 "function": { 54 "type": "ScriptFunction", 55 "id": { 56 "type": "Identifier", 57 "name": "main", 58 "decorators": [], 59 "loc": { 60 "start": { 61 "line": 1, 62 "column": 1, 63 "program": null 64 }, 65 "end": { 66 "line": 1, 67 "column": 1, 68 "program": null 69 } 70 } 71 }, 72 "generator": false, 73 "async": false, 74 "expression": false, 75 "params": [], 76 "body": { 77 "type": "BlockStatement", 78 "statements": [], 79 "loc": { 80 "start": { 81 "line": 1, 82 "column": 1, 83 "program": null 84 }, 85 "end": { 86 "line": 1, 87 "column": 1, 88 "program": null 89 } 90 } 91 }, 92 "loc": { 93 "start": { 94 "line": 1, 95 "column": 1, 96 "program": null 97 }, 98 "end": { 99 "line": 1, 100 "column": 1, 101 "program": null 102 } 103 } 104 }, 105 "loc": { 106 "start": { 107 "line": 1, 108 "column": 1, 109 "program": null 110 }, 111 "end": { 112 "line": 1, 113 "column": 1, 114 "program": null 115 } 116 } 117 }, 118 "overloads": [], 119 "decorators": [], 120 "loc": { 121 "start": { 122 "line": 1, 123 "column": 1, 124 "program": "array.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "array.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "_$init$_", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 1, 142 "column": 1, 143 "program": null 144 }, 145 "end": { 146 "line": 1, 147 "column": 1, 148 "program": null 149 } 150 } 151 }, 152 "kind": "method", 153 "accessibility": "public", 154 "static": true, 155 "optional": false, 156 "computed": false, 157 "value": { 158 "type": "FunctionExpression", 159 "function": { 160 "type": "ScriptFunction", 161 "id": { 162 "type": "Identifier", 163 "name": "_$init$_", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 1, 168 "column": 1, 169 "program": null 170 }, 171 "end": { 172 "line": 1, 173 "column": 1, 174 "program": null 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [], 182 "body": { 183 "type": "BlockStatement", 184 "statements": [ 185 { 186 "type": "ExpressionStatement", 187 "expression": { 188 "type": "AssignmentExpression", 189 "operator": "=", 190 "left": { 191 "type": "Identifier", 192 "name": "a", 193 "decorators": [], 194 "loc": { 195 "start": { 196 "line": 16, 197 "column": 5, 198 "program": "array.ets" 199 }, 200 "end": { 201 "line": 16, 202 "column": 6, 203 "program": "array.ets" 204 } 205 } 206 }, 207 "right": { 208 "type": "ArrayExpression", 209 "elements": [ 210 { 211 "type": "NumberLiteral", 212 "value": 1, 213 "loc": { 214 "start": { 215 "line": 16, 216 "column": 17, 217 "program": "array.ets" 218 }, 219 "end": { 220 "line": 16, 221 "column": 18, 222 "program": "array.ets" 223 } 224 } 225 }, 226 { 227 "type": "NumberLiteral", 228 "value": 2, 229 "loc": { 230 "start": { 231 "line": 16, 232 "column": 19, 233 "program": "array.ets" 234 }, 235 "end": { 236 "line": 16, 237 "column": 20, 238 "program": "array.ets" 239 } 240 } 241 }, 242 { 243 "type": "NumberLiteral", 244 "value": 3, 245 "loc": { 246 "start": { 247 "line": 16, 248 "column": 21, 249 "program": "array.ets" 250 }, 251 "end": { 252 "line": 16, 253 "column": 22, 254 "program": "array.ets" 255 } 256 } 257 } 258 ], 259 "loc": { 260 "start": { 261 "line": 16, 262 "column": 16, 263 "program": "array.ets" 264 }, 265 "end": { 266 "line": 16, 267 "column": 23, 268 "program": "array.ets" 269 } 270 } 271 }, 272 "loc": { 273 "start": { 274 "line": 16, 275 "column": 5, 276 "program": "array.ets" 277 }, 278 "end": { 279 "line": 16, 280 "column": 23, 281 "program": "array.ets" 282 } 283 } 284 }, 285 "loc": { 286 "start": { 287 "line": 16, 288 "column": 5, 289 "program": "array.ets" 290 }, 291 "end": { 292 "line": 16, 293 "column": 23, 294 "program": "array.ets" 295 } 296 } 297 }, 298 { 299 "type": "ExpressionStatement", 300 "expression": { 301 "type": "AssignmentExpression", 302 "operator": "=", 303 "left": { 304 "type": "Identifier", 305 "name": "v", 306 "decorators": [], 307 "loc": { 308 "start": { 309 "line": 17, 310 "column": 5, 311 "program": "array.ets" 312 }, 313 "end": { 314 "line": 17, 315 "column": 6, 316 "program": "array.ets" 317 } 318 } 319 }, 320 "right": { 321 "type": "ArrayExpression", 322 "elements": [ 323 { 324 "type": "StringLiteral", 325 "value": "x", 326 "loc": { 327 "start": { 328 "line": 17, 329 "column": 20, 330 "program": "array.ets" 331 }, 332 "end": { 333 "line": 17, 334 "column": 23, 335 "program": "array.ets" 336 } 337 } 338 }, 339 { 340 "type": "StringLiteral", 341 "value": "y", 342 "loc": { 343 "start": { 344 "line": 17, 345 "column": 25, 346 "program": "array.ets" 347 }, 348 "end": { 349 "line": 17, 350 "column": 28, 351 "program": "array.ets" 352 } 353 } 354 }, 355 { 356 "type": "StringLiteral", 357 "value": "z", 358 "loc": { 359 "start": { 360 "line": 17, 361 "column": 30, 362 "program": "array.ets" 363 }, 364 "end": { 365 "line": 17, 366 "column": 33, 367 "program": "array.ets" 368 } 369 } 370 } 371 ], 372 "loc": { 373 "start": { 374 "line": 17, 375 "column": 19, 376 "program": "array.ets" 377 }, 378 "end": { 379 "line": 17, 380 "column": 34, 381 "program": "array.ets" 382 } 383 } 384 }, 385 "loc": { 386 "start": { 387 "line": 17, 388 "column": 5, 389 "program": "array.ets" 390 }, 391 "end": { 392 "line": 17, 393 "column": 34, 394 "program": "array.ets" 395 } 396 } 397 }, 398 "loc": { 399 "start": { 400 "line": 17, 401 "column": 5, 402 "program": "array.ets" 403 }, 404 "end": { 405 "line": 17, 406 "column": 34, 407 "program": "array.ets" 408 } 409 } 410 } 411 ], 412 "loc": { 413 "start": { 414 "line": 1, 415 "column": 1, 416 "program": null 417 }, 418 "end": { 419 "line": 1, 420 "column": 1, 421 "program": null 422 } 423 } 424 }, 425 "loc": { 426 "start": { 427 "line": 1, 428 "column": 1, 429 "program": null 430 }, 431 "end": { 432 "line": 1, 433 "column": 1, 434 "program": null 435 } 436 } 437 }, 438 "loc": { 439 "start": { 440 "line": 1, 441 "column": 1, 442 "program": null 443 }, 444 "end": { 445 "line": 1, 446 "column": 1, 447 "program": null 448 } 449 } 450 }, 451 "overloads": [], 452 "decorators": [], 453 "loc": { 454 "start": { 455 "line": 1, 456 "column": 1, 457 "program": "array.ets" 458 }, 459 "end": { 460 "line": 1, 461 "column": 1, 462 "program": "array.ets" 463 } 464 } 465 }, 466 { 467 "type": "ClassProperty", 468 "key": { 469 "type": "Identifier", 470 "name": "a", 471 "decorators": [], 472 "loc": { 473 "start": { 474 "line": 16, 475 "column": 5, 476 "program": "array.ets" 477 }, 478 "end": { 479 "line": 16, 480 "column": 6, 481 "program": "array.ets" 482 } 483 } 484 }, 485 "accessibility": "public", 486 "static": true, 487 "readonly": false, 488 "declare": false, 489 "optional": false, 490 "computed": false, 491 "typeAnnotation": { 492 "type": "ETSTypeReference", 493 "part": { 494 "type": "ETSTypeReferencePart", 495 "name": { 496 "type": "Identifier", 497 "name": "Array", 498 "decorators": [], 499 "loc": { 500 "start": { 501 "line": 1, 502 "column": 1, 503 "program": "array.ets" 504 }, 505 "end": { 506 "line": 1, 507 "column": 3, 508 "program": "array.ets" 509 } 510 } 511 }, 512 "typeParams": { 513 "type": "TSTypeParameterInstantiation", 514 "params": [ 515 { 516 "type": "ETSPrimitiveType", 517 "loc": { 518 "start": { 519 "line": 1, 520 "column": 3, 521 "program": "array.ets" 522 }, 523 "end": { 524 "line": 1, 525 "column": 3, 526 "program": "array.ets" 527 } 528 } 529 } 530 ], 531 "loc": { 532 "start": { 533 "line": 1, 534 "column": 3, 535 "program": "array.ets" 536 }, 537 "end": { 538 "line": 1, 539 "column": 3, 540 "program": "array.ets" 541 } 542 } 543 }, 544 "loc": { 545 "start": { 546 "line": 1, 547 "column": 1, 548 "program": "array.ets" 549 }, 550 "end": { 551 "line": 1, 552 "column": 3, 553 "program": "array.ets" 554 } 555 } 556 }, 557 "loc": { 558 "start": { 559 "line": 16, 560 "column": 11, 561 "program": "array.ets" 562 }, 563 "end": { 564 "line": 16, 565 "column": 13, 566 "program": "array.ets" 567 } 568 } 569 }, 570 "definite": false, 571 "decorators": [], 572 "loc": { 573 "start": { 574 "line": 16, 575 "column": 5, 576 "program": "array.ets" 577 }, 578 "end": { 579 "line": 16, 580 "column": 23, 581 "program": "array.ets" 582 } 583 } 584 }, 585 { 586 "type": "ClassProperty", 587 "key": { 588 "type": "Identifier", 589 "name": "v", 590 "decorators": [], 591 "loc": { 592 "start": { 593 "line": 17, 594 "column": 5, 595 "program": "array.ets" 596 }, 597 "end": { 598 "line": 17, 599 "column": 6, 600 "program": "array.ets" 601 } 602 } 603 }, 604 "accessibility": "public", 605 "static": true, 606 "readonly": false, 607 "declare": false, 608 "optional": false, 609 "computed": false, 610 "typeAnnotation": { 611 "type": "ETSTypeReference", 612 "part": { 613 "type": "ETSTypeReferencePart", 614 "name": { 615 "type": "Identifier", 616 "name": "Array", 617 "decorators": [], 618 "loc": { 619 "start": { 620 "line": 1, 621 "column": 1, 622 "program": "array.ets" 623 }, 624 "end": { 625 "line": 1, 626 "column": 3, 627 "program": "array.ets" 628 } 629 } 630 }, 631 "typeParams": { 632 "type": "TSTypeParameterInstantiation", 633 "params": [ 634 { 635 "type": "ETSTypeReference", 636 "part": { 637 "type": "ETSTypeReferencePart", 638 "name": { 639 "type": "Identifier", 640 "name": "String", 641 "decorators": [], 642 "loc": { 643 "start": { 644 "line": 1, 645 "column": 3, 646 "program": "array.ets" 647 }, 648 "end": { 649 "line": 1, 650 "column": 3, 651 "program": "array.ets" 652 } 653 } 654 }, 655 "loc": { 656 "start": { 657 "line": 1, 658 "column": 3, 659 "program": "array.ets" 660 }, 661 "end": { 662 "line": 1, 663 "column": 3, 664 "program": "array.ets" 665 } 666 } 667 }, 668 "loc": { 669 "start": { 670 "line": 1, 671 "column": 3, 672 "program": "array.ets" 673 }, 674 "end": { 675 "line": 1, 676 "column": 3, 677 "program": "array.ets" 678 } 679 } 680 } 681 ], 682 "loc": { 683 "start": { 684 "line": 1, 685 "column": 3, 686 "program": "array.ets" 687 }, 688 "end": { 689 "line": 1, 690 "column": 3, 691 "program": "array.ets" 692 } 693 } 694 }, 695 "loc": { 696 "start": { 697 "line": 1, 698 "column": 1, 699 "program": "array.ets" 700 }, 701 "end": { 702 "line": 1, 703 "column": 3, 704 "program": "array.ets" 705 } 706 } 707 }, 708 "loc": { 709 "start": { 710 "line": 17, 711 "column": 14, 712 "program": "array.ets" 713 }, 714 "end": { 715 "line": 17, 716 "column": 16, 717 "program": "array.ets" 718 } 719 } 720 }, 721 "definite": false, 722 "decorators": [], 723 "loc": { 724 "start": { 725 "line": 17, 726 "column": 5, 727 "program": "array.ets" 728 }, 729 "end": { 730 "line": 17, 731 "column": 34, 732 "program": "array.ets" 733 } 734 } 735 }, 736 { 737 "type": "MethodDefinition", 738 "key": { 739 "type": "Identifier", 740 "name": "add", 741 "decorators": [], 742 "loc": { 743 "start": { 744 "line": 19, 745 "column": 10, 746 "program": "array.ets" 747 }, 748 "end": { 749 "line": 19, 750 "column": 13, 751 "program": "array.ets" 752 } 753 } 754 }, 755 "kind": "method", 756 "accessibility": "public", 757 "static": true, 758 "optional": false, 759 "computed": false, 760 "value": { 761 "type": "FunctionExpression", 762 "function": { 763 "type": "ScriptFunction", 764 "id": { 765 "type": "Identifier", 766 "name": "add", 767 "decorators": [], 768 "loc": { 769 "start": { 770 "line": 19, 771 "column": 10, 772 "program": "array.ets" 773 }, 774 "end": { 775 "line": 19, 776 "column": 13, 777 "program": "array.ets" 778 } 779 } 780 }, 781 "generator": false, 782 "async": false, 783 "expression": false, 784 "params": [ 785 { 786 "type": "ETSParameterExpression", 787 "name": { 788 "type": "Identifier", 789 "name": "arg", 790 "typeAnnotation": { 791 "type": "ETSTypeReference", 792 "part": { 793 "type": "ETSTypeReferencePart", 794 "name": { 795 "type": "Identifier", 796 "name": "Array", 797 "decorators": [], 798 "loc": { 799 "start": { 800 "line": 1, 801 "column": 1, 802 "program": "array.ets" 803 }, 804 "end": { 805 "line": 1, 806 "column": 3, 807 "program": "array.ets" 808 } 809 } 810 }, 811 "typeParams": { 812 "type": "TSTypeParameterInstantiation", 813 "params": [ 814 { 815 "type": "ETSPrimitiveType", 816 "loc": { 817 "start": { 818 "line": 1, 819 "column": 3, 820 "program": "array.ets" 821 }, 822 "end": { 823 "line": 1, 824 "column": 3, 825 "program": "array.ets" 826 } 827 } 828 } 829 ], 830 "loc": { 831 "start": { 832 "line": 1, 833 "column": 3, 834 "program": "array.ets" 835 }, 836 "end": { 837 "line": 1, 838 "column": 3, 839 "program": "array.ets" 840 } 841 } 842 }, 843 "loc": { 844 "start": { 845 "line": 1, 846 "column": 1, 847 "program": "array.ets" 848 }, 849 "end": { 850 "line": 1, 851 "column": 3, 852 "program": "array.ets" 853 } 854 } 855 }, 856 "loc": { 857 "start": { 858 "line": 19, 859 "column": 26, 860 "program": "array.ets" 861 }, 862 "end": { 863 "line": 19, 864 "column": 28, 865 "program": "array.ets" 866 } 867 } 868 }, 869 "decorators": [], 870 "loc": { 871 "start": { 872 "line": 19, 873 "column": 14, 874 "program": "array.ets" 875 }, 876 "end": { 877 "line": 19, 878 "column": 28, 879 "program": "array.ets" 880 } 881 } 882 }, 883 "loc": { 884 "start": { 885 "line": 19, 886 "column": 14, 887 "program": "array.ets" 888 }, 889 "end": { 890 "line": 19, 891 "column": 28, 892 "program": "array.ets" 893 } 894 } 895 } 896 ], 897 "returnType": { 898 "type": "ETSPrimitiveType", 899 "loc": { 900 "start": { 901 "line": 19, 902 "column": 31, 903 "program": "array.ets" 904 }, 905 "end": { 906 "line": 19, 907 "column": 35, 908 "program": "array.ets" 909 } 910 } 911 }, 912 "body": { 913 "type": "BlockStatement", 914 "statements": [], 915 "loc": { 916 "start": { 917 "line": 19, 918 "column": 36, 919 "program": "array.ets" 920 }, 921 "end": { 922 "line": 19, 923 "column": 38, 924 "program": "array.ets" 925 } 926 } 927 }, 928 "loc": { 929 "start": { 930 "line": 19, 931 "column": 10, 932 "program": "array.ets" 933 }, 934 "end": { 935 "line": 19, 936 "column": 38, 937 "program": "array.ets" 938 } 939 } 940 }, 941 "loc": { 942 "start": { 943 "line": 19, 944 "column": 10, 945 "program": "array.ets" 946 }, 947 "end": { 948 "line": 19, 949 "column": 38, 950 "program": "array.ets" 951 } 952 } 953 }, 954 "overloads": [], 955 "decorators": [], 956 "loc": { 957 "start": { 958 "line": 19, 959 "column": 1, 960 "program": "array.ets" 961 }, 962 "end": { 963 "line": 19, 964 "column": 38, 965 "program": "array.ets" 966 } 967 } 968 }, 969 { 970 "type": "MethodDefinition", 971 "key": { 972 "type": "Identifier", 973 "name": "foo", 974 "decorators": [], 975 "loc": { 976 "start": { 977 "line": 21, 978 "column": 10, 979 "program": "array.ets" 980 }, 981 "end": { 982 "line": 21, 983 "column": 13, 984 "program": "array.ets" 985 } 986 } 987 }, 988 "kind": "method", 989 "accessibility": "public", 990 "static": true, 991 "optional": false, 992 "computed": false, 993 "value": { 994 "type": "FunctionExpression", 995 "function": { 996 "type": "ScriptFunction", 997 "id": { 998 "type": "Identifier", 999 "name": "foo", 1000 "decorators": [], 1001 "loc": { 1002 "start": { 1003 "line": 21, 1004 "column": 10, 1005 "program": "array.ets" 1006 }, 1007 "end": { 1008 "line": 21, 1009 "column": 13, 1010 "program": "array.ets" 1011 } 1012 } 1013 }, 1014 "generator": false, 1015 "async": false, 1016 "expression": false, 1017 "params": [], 1018 "returnType": { 1019 "type": "ETSPrimitiveType", 1020 "loc": { 1021 "start": { 1022 "line": 21, 1023 "column": 17, 1024 "program": "array.ets" 1025 }, 1026 "end": { 1027 "line": 21, 1028 "column": 21, 1029 "program": "array.ets" 1030 } 1031 } 1032 }, 1033 "body": { 1034 "type": "BlockStatement", 1035 "statements": [ 1036 { 1037 "type": "ExpressionStatement", 1038 "expression": { 1039 "type": "CallExpression", 1040 "callee": { 1041 "type": "Identifier", 1042 "name": "add", 1043 "decorators": [], 1044 "loc": { 1045 "start": { 1046 "line": 22, 1047 "column": 3, 1048 "program": "array.ets" 1049 }, 1050 "end": { 1051 "line": 22, 1052 "column": 6, 1053 "program": "array.ets" 1054 } 1055 } 1056 }, 1057 "arguments": [ 1058 { 1059 "type": "ArrayExpression", 1060 "elements": [ 1061 { 1062 "type": "NumberLiteral", 1063 "value": 0.1, 1064 "loc": { 1065 "start": { 1066 "line": 22, 1067 "column": 8, 1068 "program": "array.ets" 1069 }, 1070 "end": { 1071 "line": 22, 1072 "column": 11, 1073 "program": "array.ets" 1074 } 1075 } 1076 }, 1077 { 1078 "type": "NumberLiteral", 1079 "value": 2.2, 1080 "loc": { 1081 "start": { 1082 "line": 22, 1083 "column": 13, 1084 "program": "array.ets" 1085 }, 1086 "end": { 1087 "line": 22, 1088 "column": 16, 1089 "program": "array.ets" 1090 } 1091 } 1092 }, 1093 { 1094 "type": "NumberLiteral", 1095 "value": 3.3, 1096 "loc": { 1097 "start": { 1098 "line": 22, 1099 "column": 18, 1100 "program": "array.ets" 1101 }, 1102 "end": { 1103 "line": 22, 1104 "column": 21, 1105 "program": "array.ets" 1106 } 1107 } 1108 } 1109 ], 1110 "loc": { 1111 "start": { 1112 "line": 22, 1113 "column": 7, 1114 "program": "array.ets" 1115 }, 1116 "end": { 1117 "line": 22, 1118 "column": 22, 1119 "program": "array.ets" 1120 } 1121 } 1122 } 1123 ], 1124 "optional": false, 1125 "loc": { 1126 "start": { 1127 "line": 22, 1128 "column": 3, 1129 "program": "array.ets" 1130 }, 1131 "end": { 1132 "line": 22, 1133 "column": 23, 1134 "program": "array.ets" 1135 } 1136 } 1137 }, 1138 "loc": { 1139 "start": { 1140 "line": 22, 1141 "column": 3, 1142 "program": "array.ets" 1143 }, 1144 "end": { 1145 "line": 22, 1146 "column": 24, 1147 "program": "array.ets" 1148 } 1149 } 1150 } 1151 ], 1152 "loc": { 1153 "start": { 1154 "line": 21, 1155 "column": 22, 1156 "program": "array.ets" 1157 }, 1158 "end": { 1159 "line": 23, 1160 "column": 2, 1161 "program": "array.ets" 1162 } 1163 } 1164 }, 1165 "loc": { 1166 "start": { 1167 "line": 21, 1168 "column": 10, 1169 "program": "array.ets" 1170 }, 1171 "end": { 1172 "line": 23, 1173 "column": 2, 1174 "program": "array.ets" 1175 } 1176 } 1177 }, 1178 "loc": { 1179 "start": { 1180 "line": 21, 1181 "column": 10, 1182 "program": "array.ets" 1183 }, 1184 "end": { 1185 "line": 23, 1186 "column": 2, 1187 "program": "array.ets" 1188 } 1189 } 1190 }, 1191 "overloads": [], 1192 "decorators": [], 1193 "loc": { 1194 "start": { 1195 "line": 21, 1196 "column": 1, 1197 "program": "array.ets" 1198 }, 1199 "end": { 1200 "line": 23, 1201 "column": 2, 1202 "program": "array.ets" 1203 } 1204 } 1205 }, 1206 { 1207 "type": "MethodDefinition", 1208 "key": { 1209 "type": "Identifier", 1210 "name": "bar", 1211 "decorators": [], 1212 "loc": { 1213 "start": { 1214 "line": 25, 1215 "column": 10, 1216 "program": "array.ets" 1217 }, 1218 "end": { 1219 "line": 25, 1220 "column": 13, 1221 "program": "array.ets" 1222 } 1223 } 1224 }, 1225 "kind": "method", 1226 "accessibility": "public", 1227 "static": true, 1228 "optional": false, 1229 "computed": false, 1230 "value": { 1231 "type": "FunctionExpression", 1232 "function": { 1233 "type": "ScriptFunction", 1234 "id": { 1235 "type": "Identifier", 1236 "name": "bar", 1237 "decorators": [], 1238 "loc": { 1239 "start": { 1240 "line": 25, 1241 "column": 10, 1242 "program": "array.ets" 1243 }, 1244 "end": { 1245 "line": 25, 1246 "column": 13, 1247 "program": "array.ets" 1248 } 1249 } 1250 }, 1251 "generator": false, 1252 "async": false, 1253 "expression": false, 1254 "params": [], 1255 "returnType": { 1256 "type": "ETSPrimitiveType", 1257 "loc": { 1258 "start": { 1259 "line": 25, 1260 "column": 18, 1261 "program": "array.ets" 1262 }, 1263 "end": { 1264 "line": 25, 1265 "column": 22, 1266 "program": "array.ets" 1267 } 1268 } 1269 }, 1270 "body": { 1271 "type": "BlockStatement", 1272 "statements": [ 1273 { 1274 "type": "VariableDeclaration", 1275 "declarations": [ 1276 { 1277 "type": "VariableDeclarator", 1278 "id": { 1279 "type": "Identifier", 1280 "name": "a", 1281 "typeAnnotation": { 1282 "type": "ETSTypeReference", 1283 "part": { 1284 "type": "ETSTypeReferencePart", 1285 "name": { 1286 "type": "Identifier", 1287 "name": "Array", 1288 "decorators": [], 1289 "loc": { 1290 "start": { 1291 "line": 1, 1292 "column": 1, 1293 "program": "array.ets" 1294 }, 1295 "end": { 1296 "line": 1, 1297 "column": 3, 1298 "program": "array.ets" 1299 } 1300 } 1301 }, 1302 "typeParams": { 1303 "type": "TSTypeParameterInstantiation", 1304 "params": [ 1305 { 1306 "type": "ETSTypeReference", 1307 "part": { 1308 "type": "ETSTypeReferencePart", 1309 "name": { 1310 "type": "Identifier", 1311 "name": "Array", 1312 "decorators": [], 1313 "loc": { 1314 "start": { 1315 "line": 1, 1316 "column": 1, 1317 "program": "array.ets" 1318 }, 1319 "end": { 1320 "line": 1, 1321 "column": 3, 1322 "program": "array.ets" 1323 } 1324 } 1325 }, 1326 "typeParams": { 1327 "type": "TSTypeParameterInstantiation", 1328 "params": [ 1329 { 1330 "type": "ETSPrimitiveType", 1331 "loc": { 1332 "start": { 1333 "line": 1, 1334 "column": 3, 1335 "program": "array.ets" 1336 }, 1337 "end": { 1338 "line": 1, 1339 "column": 3, 1340 "program": "array.ets" 1341 } 1342 } 1343 } 1344 ], 1345 "loc": { 1346 "start": { 1347 "line": 1, 1348 "column": 3, 1349 "program": "array.ets" 1350 }, 1351 "end": { 1352 "line": 1, 1353 "column": 3, 1354 "program": "array.ets" 1355 } 1356 } 1357 }, 1358 "loc": { 1359 "start": { 1360 "line": 1, 1361 "column": 1, 1362 "program": "array.ets" 1363 }, 1364 "end": { 1365 "line": 1, 1366 "column": 3, 1367 "program": "array.ets" 1368 } 1369 } 1370 }, 1371 "loc": { 1372 "start": { 1373 "line": 1, 1374 "column": 3, 1375 "program": "array.ets" 1376 }, 1377 "end": { 1378 "line": 1, 1379 "column": 3, 1380 "program": "array.ets" 1381 } 1382 } 1383 } 1384 ], 1385 "loc": { 1386 "start": { 1387 "line": 1, 1388 "column": 3, 1389 "program": "array.ets" 1390 }, 1391 "end": { 1392 "line": 1, 1393 "column": 3, 1394 "program": "array.ets" 1395 } 1396 } 1397 }, 1398 "loc": { 1399 "start": { 1400 "line": 1, 1401 "column": 1, 1402 "program": "array.ets" 1403 }, 1404 "end": { 1405 "line": 1, 1406 "column": 3, 1407 "program": "array.ets" 1408 } 1409 } 1410 }, 1411 "loc": { 1412 "start": { 1413 "line": 26, 1414 "column": 18, 1415 "program": "array.ets" 1416 }, 1417 "end": { 1418 "line": 26, 1419 "column": 20, 1420 "program": "array.ets" 1421 } 1422 } 1423 }, 1424 "decorators": [], 1425 "loc": { 1426 "start": { 1427 "line": 26, 1428 "column": 9, 1429 "program": "array.ets" 1430 }, 1431 "end": { 1432 "line": 26, 1433 "column": 10, 1434 "program": "array.ets" 1435 } 1436 } 1437 }, 1438 "init": { 1439 "type": "ArrayExpression", 1440 "elements": [ 1441 { 1442 "type": "ArrayExpression", 1443 "elements": [], 1444 "loc": { 1445 "start": { 1446 "line": 26, 1447 "column": 24, 1448 "program": "array.ets" 1449 }, 1450 "end": { 1451 "line": 26, 1452 "column": 26, 1453 "program": "array.ets" 1454 } 1455 } 1456 }, 1457 { 1458 "type": "ArrayExpression", 1459 "elements": [], 1460 "loc": { 1461 "start": { 1462 "line": 26, 1463 "column": 28, 1464 "program": "array.ets" 1465 }, 1466 "end": { 1467 "line": 26, 1468 "column": 30, 1469 "program": "array.ets" 1470 } 1471 } 1472 }, 1473 { 1474 "type": "ArrayExpression", 1475 "elements": [], 1476 "loc": { 1477 "start": { 1478 "line": 26, 1479 "column": 32, 1480 "program": "array.ets" 1481 }, 1482 "end": { 1483 "line": 26, 1484 "column": 34, 1485 "program": "array.ets" 1486 } 1487 } 1488 }, 1489 { 1490 "type": "ArrayExpression", 1491 "elements": [], 1492 "loc": { 1493 "start": { 1494 "line": 26, 1495 "column": 36, 1496 "program": "array.ets" 1497 }, 1498 "end": { 1499 "line": 26, 1500 "column": 38, 1501 "program": "array.ets" 1502 } 1503 } 1504 } 1505 ], 1506 "loc": { 1507 "start": { 1508 "line": 26, 1509 "column": 23, 1510 "program": "array.ets" 1511 }, 1512 "end": { 1513 "line": 26, 1514 "column": 39, 1515 "program": "array.ets" 1516 } 1517 } 1518 }, 1519 "loc": { 1520 "start": { 1521 "line": 26, 1522 "column": 9, 1523 "program": "array.ets" 1524 }, 1525 "end": { 1526 "line": 26, 1527 "column": 39, 1528 "program": "array.ets" 1529 } 1530 } 1531 } 1532 ], 1533 "kind": "let", 1534 "loc": { 1535 "start": { 1536 "line": 26, 1537 "column": 5, 1538 "program": "array.ets" 1539 }, 1540 "end": { 1541 "line": 26, 1542 "column": 40, 1543 "program": "array.ets" 1544 } 1545 } 1546 }, 1547 { 1548 "type": "VariableDeclaration", 1549 "declarations": [ 1550 { 1551 "type": "VariableDeclarator", 1552 "id": { 1553 "type": "Identifier", 1554 "name": "b", 1555 "typeAnnotation": { 1556 "type": "ETSTypeReference", 1557 "part": { 1558 "type": "ETSTypeReferencePart", 1559 "name": { 1560 "type": "Identifier", 1561 "name": "Array", 1562 "decorators": [], 1563 "loc": { 1564 "start": { 1565 "line": 1, 1566 "column": 1, 1567 "program": "array.ets" 1568 }, 1569 "end": { 1570 "line": 1, 1571 "column": 3, 1572 "program": "array.ets" 1573 } 1574 } 1575 }, 1576 "typeParams": { 1577 "type": "TSTypeParameterInstantiation", 1578 "params": [ 1579 { 1580 "type": "ETSTypeReference", 1581 "part": { 1582 "type": "ETSTypeReferencePart", 1583 "name": { 1584 "type": "Identifier", 1585 "name": "Array", 1586 "decorators": [], 1587 "loc": { 1588 "start": { 1589 "line": 1, 1590 "column": 1, 1591 "program": "array.ets" 1592 }, 1593 "end": { 1594 "line": 1, 1595 "column": 3, 1596 "program": "array.ets" 1597 } 1598 } 1599 }, 1600 "typeParams": { 1601 "type": "TSTypeParameterInstantiation", 1602 "params": [ 1603 { 1604 "type": "ETSPrimitiveType", 1605 "loc": { 1606 "start": { 1607 "line": 1, 1608 "column": 3, 1609 "program": "array.ets" 1610 }, 1611 "end": { 1612 "line": 1, 1613 "column": 3, 1614 "program": "array.ets" 1615 } 1616 } 1617 } 1618 ], 1619 "loc": { 1620 "start": { 1621 "line": 1, 1622 "column": 3, 1623 "program": "array.ets" 1624 }, 1625 "end": { 1626 "line": 1, 1627 "column": 3, 1628 "program": "array.ets" 1629 } 1630 } 1631 }, 1632 "loc": { 1633 "start": { 1634 "line": 1, 1635 "column": 1, 1636 "program": "array.ets" 1637 }, 1638 "end": { 1639 "line": 1, 1640 "column": 3, 1641 "program": "array.ets" 1642 } 1643 } 1644 }, 1645 "loc": { 1646 "start": { 1647 "line": 1, 1648 "column": 3, 1649 "program": "array.ets" 1650 }, 1651 "end": { 1652 "line": 1, 1653 "column": 3, 1654 "program": "array.ets" 1655 } 1656 } 1657 } 1658 ], 1659 "loc": { 1660 "start": { 1661 "line": 1, 1662 "column": 3, 1663 "program": "array.ets" 1664 }, 1665 "end": { 1666 "line": 1, 1667 "column": 3, 1668 "program": "array.ets" 1669 } 1670 } 1671 }, 1672 "loc": { 1673 "start": { 1674 "line": 1, 1675 "column": 1, 1676 "program": "array.ets" 1677 }, 1678 "end": { 1679 "line": 1, 1680 "column": 3, 1681 "program": "array.ets" 1682 } 1683 } 1684 }, 1685 "loc": { 1686 "start": { 1687 "line": 27, 1688 "column": 18, 1689 "program": "array.ets" 1690 }, 1691 "end": { 1692 "line": 27, 1693 "column": 20, 1694 "program": "array.ets" 1695 } 1696 } 1697 }, 1698 "decorators": [], 1699 "loc": { 1700 "start": { 1701 "line": 27, 1702 "column": 9, 1703 "program": "array.ets" 1704 }, 1705 "end": { 1706 "line": 27, 1707 "column": 10, 1708 "program": "array.ets" 1709 } 1710 } 1711 }, 1712 "init": { 1713 "type": "ETSNewMultiDimArrayInstanceExpression", 1714 "typeReference": { 1715 "type": "ETSPrimitiveType", 1716 "loc": { 1717 "start": { 1718 "line": 27, 1719 "column": 27, 1720 "program": "array.ets" 1721 }, 1722 "end": { 1723 "line": 27, 1724 "column": 31, 1725 "program": "array.ets" 1726 } 1727 } 1728 }, 1729 "dimensions": [ 1730 { 1731 "type": "NumberLiteral", 1732 "value": 4, 1733 "loc": { 1734 "start": { 1735 "line": 27, 1736 "column": 32, 1737 "program": "array.ets" 1738 }, 1739 "end": { 1740 "line": 27, 1741 "column": 33, 1742 "program": "array.ets" 1743 } 1744 } 1745 }, 1746 { 1747 "type": "NumberLiteral", 1748 "value": 4, 1749 "loc": { 1750 "start": { 1751 "line": 27, 1752 "column": 35, 1753 "program": "array.ets" 1754 }, 1755 "end": { 1756 "line": 27, 1757 "column": 36, 1758 "program": "array.ets" 1759 } 1760 } 1761 } 1762 ], 1763 "loc": { 1764 "start": { 1765 "line": 27, 1766 "column": 23, 1767 "program": "array.ets" 1768 }, 1769 "end": { 1770 "line": 27, 1771 "column": 37, 1772 "program": "array.ets" 1773 } 1774 } 1775 }, 1776 "loc": { 1777 "start": { 1778 "line": 27, 1779 "column": 9, 1780 "program": "array.ets" 1781 }, 1782 "end": { 1783 "line": 27, 1784 "column": 37, 1785 "program": "array.ets" 1786 } 1787 } 1788 } 1789 ], 1790 "kind": "let", 1791 "loc": { 1792 "start": { 1793 "line": 27, 1794 "column": 5, 1795 "program": "array.ets" 1796 }, 1797 "end": { 1798 "line": 27, 1799 "column": 38, 1800 "program": "array.ets" 1801 } 1802 } 1803 } 1804 ], 1805 "loc": { 1806 "start": { 1807 "line": 25, 1808 "column": 23, 1809 "program": "array.ets" 1810 }, 1811 "end": { 1812 "line": 28, 1813 "column": 2, 1814 "program": "array.ets" 1815 } 1816 } 1817 }, 1818 "loc": { 1819 "start": { 1820 "line": 25, 1821 "column": 10, 1822 "program": "array.ets" 1823 }, 1824 "end": { 1825 "line": 28, 1826 "column": 2, 1827 "program": "array.ets" 1828 } 1829 } 1830 }, 1831 "loc": { 1832 "start": { 1833 "line": 25, 1834 "column": 10, 1835 "program": "array.ets" 1836 }, 1837 "end": { 1838 "line": 28, 1839 "column": 2, 1840 "program": "array.ets" 1841 } 1842 } 1843 }, 1844 "overloads": [], 1845 "decorators": [], 1846 "loc": { 1847 "start": { 1848 "line": 25, 1849 "column": 1, 1850 "program": "array.ets" 1851 }, 1852 "end": { 1853 "line": 28, 1854 "column": 2, 1855 "program": "array.ets" 1856 } 1857 } 1858 } 1859 ], 1860 "loc": { 1861 "start": { 1862 "line": 1, 1863 "column": 1, 1864 "program": "array.ets" 1865 }, 1866 "end": { 1867 "line": 1, 1868 "column": 1, 1869 "program": "array.ets" 1870 } 1871 } 1872 }, 1873 "loc": { 1874 "start": { 1875 "line": 1, 1876 "column": 1, 1877 "program": "array.ets" 1878 }, 1879 "end": { 1880 "line": 1, 1881 "column": 1, 1882 "program": "array.ets" 1883 } 1884 } 1885 } 1886 ], 1887 "loc": { 1888 "start": { 1889 "line": 1, 1890 "column": 1, 1891 "program": "array.ets" 1892 }, 1893 "end": { 1894 "line": 29, 1895 "column": 1, 1896 "program": "array.ets" 1897 } 1898 } 1899} 1900