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