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