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