1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "Enum", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 20, 14 "column": 6, 15 "program": "switch_enum_string_case.ets" 16 }, 17 "end": { 18 "line": 20, 19 "column": 10, 20 "program": "switch_enum_string_case.ets" 21 } 22 } 23 }, 24 "superClass": { 25 "type": "ETSTypeReference", 26 "part": { 27 "type": "ETSTypeReferencePart", 28 "name": { 29 "type": "Identifier", 30 "name": "BaseEnum", 31 "decorators": [], 32 "loc": { 33 "start": { 34 "line": 20, 35 "column": 1, 36 "program": "switch_enum_string_case.ets" 37 }, 38 "end": { 39 "line": 20, 40 "column": 1, 41 "program": "switch_enum_string_case.ets" 42 } 43 } 44 }, 45 "typeParams": { 46 "type": "TSTypeParameterInstantiation", 47 "params": [ 48 { 49 "type": "ETSTypeReference", 50 "part": { 51 "type": "ETSTypeReferencePart", 52 "name": { 53 "type": "Identifier", 54 "name": "String", 55 "decorators": [], 56 "loc": { 57 "start": { 58 "line": 20, 59 "column": 1, 60 "program": "switch_enum_string_case.ets" 61 }, 62 "end": { 63 "line": 20, 64 "column": 1, 65 "program": "switch_enum_string_case.ets" 66 } 67 } 68 }, 69 "loc": { 70 "start": { 71 "line": 20, 72 "column": 1, 73 "program": "switch_enum_string_case.ets" 74 }, 75 "end": { 76 "line": 20, 77 "column": 1, 78 "program": "switch_enum_string_case.ets" 79 } 80 } 81 }, 82 "loc": { 83 "start": { 84 "line": 20, 85 "column": 1, 86 "program": "switch_enum_string_case.ets" 87 }, 88 "end": { 89 "line": 20, 90 "column": 1, 91 "program": "switch_enum_string_case.ets" 92 } 93 } 94 } 95 ], 96 "loc": { 97 "start": { 98 "line": 20, 99 "column": 1, 100 "program": "switch_enum_string_case.ets" 101 }, 102 "end": { 103 "line": 20, 104 "column": 1, 105 "program": "switch_enum_string_case.ets" 106 } 107 } 108 }, 109 "loc": { 110 "start": { 111 "line": 20, 112 "column": 1, 113 "program": "switch_enum_string_case.ets" 114 }, 115 "end": { 116 "line": 20, 117 "column": 1, 118 "program": "switch_enum_string_case.ets" 119 } 120 } 121 }, 122 "loc": { 123 "start": { 124 "line": 20, 125 "column": 1, 126 "program": "switch_enum_string_case.ets" 127 }, 128 "end": { 129 "line": 20, 130 "column": 1, 131 "program": "switch_enum_string_case.ets" 132 } 133 } 134 }, 135 "implements": [], 136 "body": [ 137 { 138 "type": "ClassProperty", 139 "key": { 140 "type": "Identifier", 141 "name": "#ordinal", 142 "decorators": [], 143 "loc": { 144 "start": { 145 "line": 20, 146 "column": 1, 147 "program": "switch_enum_string_case.ets" 148 }, 149 "end": { 150 "line": 20, 151 "column": 1, 152 "program": "switch_enum_string_case.ets" 153 } 154 } 155 }, 156 "accessibility": "private", 157 "static": false, 158 "readonly": true, 159 "declare": false, 160 "optional": false, 161 "computed": false, 162 "typeAnnotation": { 163 "type": "ETSPrimitiveType", 164 "loc": { 165 "start": { 166 "line": 20, 167 "column": 1, 168 "program": "switch_enum_string_case.ets" 169 }, 170 "end": { 171 "line": 20, 172 "column": 1, 173 "program": "switch_enum_string_case.ets" 174 } 175 } 176 }, 177 "definite": false, 178 "decorators": [], 179 "loc": { 180 "start": { 181 "line": 20, 182 "column": 1, 183 "program": "switch_enum_string_case.ets" 184 }, 185 "end": { 186 "line": 20, 187 "column": 1, 188 "program": "switch_enum_string_case.ets" 189 } 190 } 191 }, 192 { 193 "type": "MethodDefinition", 194 "key": { 195 "type": "Identifier", 196 "name": "<cctor>", 197 "decorators": [], 198 "loc": { 199 "start": { 200 "line": 20, 201 "column": 1, 202 "program": "switch_enum_string_case.ets" 203 }, 204 "end": { 205 "line": 20, 206 "column": 1, 207 "program": "switch_enum_string_case.ets" 208 } 209 } 210 }, 211 "kind": "method", 212 "accessibility": "private", 213 "static": true, 214 "optional": false, 215 "computed": false, 216 "value": { 217 "type": "FunctionExpression", 218 "function": { 219 "type": "ScriptFunction", 220 "id": { 221 "type": "Identifier", 222 "name": "<cctor>", 223 "decorators": [], 224 "loc": { 225 "start": { 226 "line": 20, 227 "column": 1, 228 "program": "switch_enum_string_case.ets" 229 }, 230 "end": { 231 "line": 20, 232 "column": 1, 233 "program": "switch_enum_string_case.ets" 234 } 235 } 236 }, 237 "generator": false, 238 "async": false, 239 "expression": false, 240 "params": [], 241 "body": { 242 "type": "BlockStatement", 243 "statements": [], 244 "loc": { 245 "start": { 246 "line": 20, 247 "column": 1, 248 "program": "switch_enum_string_case.ets" 249 }, 250 "end": { 251 "line": 20, 252 "column": 1, 253 "program": "switch_enum_string_case.ets" 254 } 255 } 256 }, 257 "loc": { 258 "start": { 259 "line": 20, 260 "column": 1, 261 "program": "switch_enum_string_case.ets" 262 }, 263 "end": { 264 "line": 20, 265 "column": 1, 266 "program": "switch_enum_string_case.ets" 267 } 268 } 269 }, 270 "loc": { 271 "start": { 272 "line": 20, 273 "column": 1, 274 "program": "switch_enum_string_case.ets" 275 }, 276 "end": { 277 "line": 20, 278 "column": 1, 279 "program": "switch_enum_string_case.ets" 280 } 281 } 282 }, 283 "overloads": [], 284 "decorators": [], 285 "loc": { 286 "start": { 287 "line": 20, 288 "column": 1, 289 "program": "switch_enum_string_case.ets" 290 }, 291 "end": { 292 "line": 20, 293 "column": 1, 294 "program": "switch_enum_string_case.ets" 295 } 296 } 297 }, 298 { 299 "type": "MethodDefinition", 300 "key": { 301 "type": "Identifier", 302 "name": "constructor", 303 "decorators": [], 304 "loc": { 305 "start": { 306 "line": 20, 307 "column": 1, 308 "program": "switch_enum_string_case.ets" 309 }, 310 "end": { 311 "line": 20, 312 "column": 1, 313 "program": "switch_enum_string_case.ets" 314 } 315 } 316 }, 317 "kind": "constructor", 318 "accessibility": "public", 319 "static": false, 320 "optional": false, 321 "computed": false, 322 "value": { 323 "type": "FunctionExpression", 324 "function": { 325 "type": "ScriptFunction", 326 "id": { 327 "type": "Identifier", 328 "name": "constructor", 329 "decorators": [], 330 "loc": { 331 "start": { 332 "line": 20, 333 "column": 1, 334 "program": "switch_enum_string_case.ets" 335 }, 336 "end": { 337 "line": 20, 338 "column": 1, 339 "program": "switch_enum_string_case.ets" 340 } 341 } 342 }, 343 "generator": false, 344 "async": false, 345 "expression": false, 346 "params": [ 347 { 348 "type": "ETSParameterExpression", 349 "name": { 350 "type": "Identifier", 351 "name": "ordinal", 352 "typeAnnotation": { 353 "type": "ETSPrimitiveType", 354 "loc": { 355 "start": { 356 "line": 20, 357 "column": 1, 358 "program": "switch_enum_string_case.ets" 359 }, 360 "end": { 361 "line": 20, 362 "column": 1, 363 "program": "switch_enum_string_case.ets" 364 } 365 } 366 }, 367 "decorators": [], 368 "loc": { 369 "start": { 370 "line": 20, 371 "column": 1, 372 "program": "switch_enum_string_case.ets" 373 }, 374 "end": { 375 "line": 20, 376 "column": 1, 377 "program": "switch_enum_string_case.ets" 378 } 379 } 380 }, 381 "loc": { 382 "start": { 383 "line": 20, 384 "column": 1, 385 "program": "switch_enum_string_case.ets" 386 }, 387 "end": { 388 "line": 20, 389 "column": 1, 390 "program": "switch_enum_string_case.ets" 391 } 392 } 393 }, 394 { 395 "type": "ETSParameterExpression", 396 "name": { 397 "type": "Identifier", 398 "name": "value", 399 "typeAnnotation": { 400 "type": "ETSTypeReference", 401 "part": { 402 "type": "ETSTypeReferencePart", 403 "name": { 404 "type": "Identifier", 405 "name": "String", 406 "decorators": [], 407 "loc": { 408 "start": { 409 "line": 20, 410 "column": 1, 411 "program": "switch_enum_string_case.ets" 412 }, 413 "end": { 414 "line": 20, 415 "column": 1, 416 "program": "switch_enum_string_case.ets" 417 } 418 } 419 }, 420 "loc": { 421 "start": { 422 "line": 20, 423 "column": 1, 424 "program": "switch_enum_string_case.ets" 425 }, 426 "end": { 427 "line": 20, 428 "column": 1, 429 "program": "switch_enum_string_case.ets" 430 } 431 } 432 }, 433 "loc": { 434 "start": { 435 "line": 20, 436 "column": 1, 437 "program": "switch_enum_string_case.ets" 438 }, 439 "end": { 440 "line": 20, 441 "column": 1, 442 "program": "switch_enum_string_case.ets" 443 } 444 } 445 }, 446 "decorators": [], 447 "loc": { 448 "start": { 449 "line": 20, 450 "column": 1, 451 "program": "switch_enum_string_case.ets" 452 }, 453 "end": { 454 "line": 20, 455 "column": 1, 456 "program": "switch_enum_string_case.ets" 457 } 458 } 459 }, 460 "loc": { 461 "start": { 462 "line": 20, 463 "column": 1, 464 "program": "switch_enum_string_case.ets" 465 }, 466 "end": { 467 "line": 20, 468 "column": 1, 469 "program": "switch_enum_string_case.ets" 470 } 471 } 472 } 473 ], 474 "body": { 475 "type": "BlockStatement", 476 "statements": [ 477 { 478 "type": "ExpressionStatement", 479 "expression": { 480 "type": "CallExpression", 481 "callee": { 482 "type": "Super", 483 "loc": { 484 "start": { 485 "line": 20, 486 "column": 1, 487 "program": "switch_enum_string_case.ets" 488 }, 489 "end": { 490 "line": 20, 491 "column": 1, 492 "program": "switch_enum_string_case.ets" 493 } 494 } 495 }, 496 "arguments": [ 497 { 498 "type": "Identifier", 499 "name": "value", 500 "decorators": [], 501 "loc": { 502 "start": { 503 "line": 20, 504 "column": 1, 505 "program": "switch_enum_string_case.ets" 506 }, 507 "end": { 508 "line": 20, 509 "column": 1, 510 "program": "switch_enum_string_case.ets" 511 } 512 } 513 } 514 ], 515 "optional": false, 516 "loc": { 517 "start": { 518 "line": 20, 519 "column": 1, 520 "program": "switch_enum_string_case.ets" 521 }, 522 "end": { 523 "line": 20, 524 "column": 1, 525 "program": "switch_enum_string_case.ets" 526 } 527 } 528 }, 529 "loc": { 530 "start": { 531 "line": 20, 532 "column": 1, 533 "program": "switch_enum_string_case.ets" 534 }, 535 "end": { 536 "line": 20, 537 "column": 1, 538 "program": "switch_enum_string_case.ets" 539 } 540 } 541 }, 542 { 543 "type": "ExpressionStatement", 544 "expression": { 545 "type": "AssignmentExpression", 546 "operator": "=", 547 "left": { 548 "type": "MemberExpression", 549 "object": { 550 "type": "ThisExpression", 551 "loc": { 552 "start": { 553 "line": 20, 554 "column": 1, 555 "program": "switch_enum_string_case.ets" 556 }, 557 "end": { 558 "line": 20, 559 "column": 1, 560 "program": "switch_enum_string_case.ets" 561 } 562 } 563 }, 564 "property": { 565 "type": "Identifier", 566 "name": "#ordinal", 567 "decorators": [], 568 "loc": { 569 "start": { 570 "line": 20, 571 "column": 1, 572 "program": "switch_enum_string_case.ets" 573 }, 574 "end": { 575 "line": 20, 576 "column": 1, 577 "program": "switch_enum_string_case.ets" 578 } 579 } 580 }, 581 "computed": false, 582 "optional": false, 583 "loc": { 584 "start": { 585 "line": 20, 586 "column": 1, 587 "program": "switch_enum_string_case.ets" 588 }, 589 "end": { 590 "line": 20, 591 "column": 1, 592 "program": "switch_enum_string_case.ets" 593 } 594 } 595 }, 596 "right": { 597 "type": "Identifier", 598 "name": "ordinal", 599 "decorators": [], 600 "loc": { 601 "start": { 602 "line": 20, 603 "column": 1, 604 "program": "switch_enum_string_case.ets" 605 }, 606 "end": { 607 "line": 20, 608 "column": 1, 609 "program": "switch_enum_string_case.ets" 610 } 611 } 612 }, 613 "loc": { 614 "start": { 615 "line": 20, 616 "column": 1, 617 "program": "switch_enum_string_case.ets" 618 }, 619 "end": { 620 "line": 20, 621 "column": 1, 622 "program": "switch_enum_string_case.ets" 623 } 624 } 625 }, 626 "loc": { 627 "start": { 628 "line": 20, 629 "column": 1, 630 "program": "switch_enum_string_case.ets" 631 }, 632 "end": { 633 "line": 20, 634 "column": 1, 635 "program": "switch_enum_string_case.ets" 636 } 637 } 638 } 639 ], 640 "loc": { 641 "start": { 642 "line": 20, 643 "column": 1, 644 "program": "switch_enum_string_case.ets" 645 }, 646 "end": { 647 "line": 20, 648 "column": 1, 649 "program": "switch_enum_string_case.ets" 650 } 651 } 652 }, 653 "loc": { 654 "start": { 655 "line": 20, 656 "column": 1, 657 "program": "switch_enum_string_case.ets" 658 }, 659 "end": { 660 "line": 20, 661 "column": 1, 662 "program": "switch_enum_string_case.ets" 663 } 664 } 665 }, 666 "loc": { 667 "start": { 668 "line": 20, 669 "column": 1, 670 "program": "switch_enum_string_case.ets" 671 }, 672 "end": { 673 "line": 20, 674 "column": 1, 675 "program": "switch_enum_string_case.ets" 676 } 677 } 678 }, 679 "overloads": [], 680 "decorators": [], 681 "loc": { 682 "start": { 683 "line": 20, 684 "column": 1, 685 "program": "switch_enum_string_case.ets" 686 }, 687 "end": { 688 "line": 20, 689 "column": 1, 690 "program": "switch_enum_string_case.ets" 691 } 692 } 693 }, 694 { 695 "type": "ClassProperty", 696 "key": { 697 "type": "Identifier", 698 "name": "e1", 699 "decorators": [], 700 "loc": { 701 "start": { 702 "line": 20, 703 "column": 12, 704 "program": "switch_enum_string_case.ets" 705 }, 706 "end": { 707 "line": 20, 708 "column": 14, 709 "program": "switch_enum_string_case.ets" 710 } 711 } 712 }, 713 "value": { 714 "type": "ETSNewClassInstanceExpression", 715 "typeReference": { 716 "type": "ETSTypeReference", 717 "part": { 718 "type": "ETSTypeReferencePart", 719 "name": { 720 "type": "Identifier", 721 "name": "Enum", 722 "decorators": [], 723 "loc": { 724 "start": { 725 "line": 20, 726 "column": 1, 727 "program": "switch_enum_string_case.ets" 728 }, 729 "end": { 730 "line": 20, 731 "column": 1, 732 "program": "switch_enum_string_case.ets" 733 } 734 } 735 }, 736 "loc": { 737 "start": { 738 "line": 20, 739 "column": 1, 740 "program": "switch_enum_string_case.ets" 741 }, 742 "end": { 743 "line": 20, 744 "column": 1, 745 "program": "switch_enum_string_case.ets" 746 } 747 } 748 }, 749 "loc": { 750 "start": { 751 "line": 20, 752 "column": 1, 753 "program": "switch_enum_string_case.ets" 754 }, 755 "end": { 756 "line": 20, 757 "column": 1, 758 "program": "switch_enum_string_case.ets" 759 } 760 } 761 }, 762 "arguments": [ 763 { 764 "type": "NumberLiteral", 765 "value": 0, 766 "loc": { 767 "start": { 768 "line": 20, 769 "column": 1, 770 "program": "switch_enum_string_case.ets" 771 }, 772 "end": { 773 "line": 20, 774 "column": 1, 775 "program": "switch_enum_string_case.ets" 776 } 777 } 778 }, 779 { 780 "type": "StringLiteral", 781 "value": "A", 782 "loc": { 783 "start": { 784 "line": 20, 785 "column": 1, 786 "program": "switch_enum_string_case.ets" 787 }, 788 "end": { 789 "line": 20, 790 "column": 1, 791 "program": "switch_enum_string_case.ets" 792 } 793 } 794 } 795 ], 796 "loc": { 797 "start": { 798 "line": 20, 799 "column": 17, 800 "program": "switch_enum_string_case.ets" 801 }, 802 "end": { 803 "line": 20, 804 "column": 20, 805 "program": "switch_enum_string_case.ets" 806 } 807 } 808 }, 809 "accessibility": "public", 810 "static": true, 811 "readonly": true, 812 "declare": false, 813 "optional": false, 814 "computed": false, 815 "typeAnnotation": { 816 "type": "ETSTypeReference", 817 "part": { 818 "type": "ETSTypeReferencePart", 819 "name": { 820 "type": "Identifier", 821 "name": "Enum", 822 "decorators": [], 823 "loc": { 824 "start": { 825 "line": 20, 826 "column": 1, 827 "program": "switch_enum_string_case.ets" 828 }, 829 "end": { 830 "line": 20, 831 "column": 1, 832 "program": "switch_enum_string_case.ets" 833 } 834 } 835 }, 836 "loc": { 837 "start": { 838 "line": 20, 839 "column": 1, 840 "program": "switch_enum_string_case.ets" 841 }, 842 "end": { 843 "line": 20, 844 "column": 1, 845 "program": "switch_enum_string_case.ets" 846 } 847 } 848 }, 849 "loc": { 850 "start": { 851 "line": 20, 852 "column": 1, 853 "program": "switch_enum_string_case.ets" 854 }, 855 "end": { 856 "line": 20, 857 "column": 1, 858 "program": "switch_enum_string_case.ets" 859 } 860 } 861 }, 862 "definite": false, 863 "decorators": [], 864 "loc": { 865 "start": { 866 "line": 20, 867 "column": 12, 868 "program": "switch_enum_string_case.ets" 869 }, 870 "end": { 871 "line": 20, 872 "column": 20, 873 "program": "switch_enum_string_case.ets" 874 } 875 } 876 }, 877 { 878 "type": "ClassProperty", 879 "key": { 880 "type": "Identifier", 881 "name": "e2", 882 "decorators": [], 883 "loc": { 884 "start": { 885 "line": 20, 886 "column": 22, 887 "program": "switch_enum_string_case.ets" 888 }, 889 "end": { 890 "line": 20, 891 "column": 24, 892 "program": "switch_enum_string_case.ets" 893 } 894 } 895 }, 896 "value": { 897 "type": "ETSNewClassInstanceExpression", 898 "typeReference": { 899 "type": "ETSTypeReference", 900 "part": { 901 "type": "ETSTypeReferencePart", 902 "name": { 903 "type": "Identifier", 904 "name": "Enum", 905 "decorators": [], 906 "loc": { 907 "start": { 908 "line": 20, 909 "column": 1, 910 "program": "switch_enum_string_case.ets" 911 }, 912 "end": { 913 "line": 20, 914 "column": 1, 915 "program": "switch_enum_string_case.ets" 916 } 917 } 918 }, 919 "loc": { 920 "start": { 921 "line": 20, 922 "column": 1, 923 "program": "switch_enum_string_case.ets" 924 }, 925 "end": { 926 "line": 20, 927 "column": 1, 928 "program": "switch_enum_string_case.ets" 929 } 930 } 931 }, 932 "loc": { 933 "start": { 934 "line": 20, 935 "column": 1, 936 "program": "switch_enum_string_case.ets" 937 }, 938 "end": { 939 "line": 20, 940 "column": 1, 941 "program": "switch_enum_string_case.ets" 942 } 943 } 944 }, 945 "arguments": [ 946 { 947 "type": "NumberLiteral", 948 "value": 1, 949 "loc": { 950 "start": { 951 "line": 20, 952 "column": 1, 953 "program": "switch_enum_string_case.ets" 954 }, 955 "end": { 956 "line": 20, 957 "column": 1, 958 "program": "switch_enum_string_case.ets" 959 } 960 } 961 }, 962 { 963 "type": "StringLiteral", 964 "value": "B", 965 "loc": { 966 "start": { 967 "line": 20, 968 "column": 1, 969 "program": "switch_enum_string_case.ets" 970 }, 971 "end": { 972 "line": 20, 973 "column": 1, 974 "program": "switch_enum_string_case.ets" 975 } 976 } 977 } 978 ], 979 "loc": { 980 "start": { 981 "line": 20, 982 "column": 27, 983 "program": "switch_enum_string_case.ets" 984 }, 985 "end": { 986 "line": 20, 987 "column": 30, 988 "program": "switch_enum_string_case.ets" 989 } 990 } 991 }, 992 "accessibility": "public", 993 "static": true, 994 "readonly": true, 995 "declare": false, 996 "optional": false, 997 "computed": false, 998 "typeAnnotation": { 999 "type": "ETSTypeReference", 1000 "part": { 1001 "type": "ETSTypeReferencePart", 1002 "name": { 1003 "type": "Identifier", 1004 "name": "Enum", 1005 "decorators": [], 1006 "loc": { 1007 "start": { 1008 "line": 20, 1009 "column": 1, 1010 "program": "switch_enum_string_case.ets" 1011 }, 1012 "end": { 1013 "line": 20, 1014 "column": 1, 1015 "program": "switch_enum_string_case.ets" 1016 } 1017 } 1018 }, 1019 "loc": { 1020 "start": { 1021 "line": 20, 1022 "column": 1, 1023 "program": "switch_enum_string_case.ets" 1024 }, 1025 "end": { 1026 "line": 20, 1027 "column": 1, 1028 "program": "switch_enum_string_case.ets" 1029 } 1030 } 1031 }, 1032 "loc": { 1033 "start": { 1034 "line": 20, 1035 "column": 1, 1036 "program": "switch_enum_string_case.ets" 1037 }, 1038 "end": { 1039 "line": 20, 1040 "column": 1, 1041 "program": "switch_enum_string_case.ets" 1042 } 1043 } 1044 }, 1045 "definite": false, 1046 "decorators": [], 1047 "loc": { 1048 "start": { 1049 "line": 20, 1050 "column": 22, 1051 "program": "switch_enum_string_case.ets" 1052 }, 1053 "end": { 1054 "line": 20, 1055 "column": 30, 1056 "program": "switch_enum_string_case.ets" 1057 } 1058 } 1059 }, 1060 { 1061 "type": "ClassProperty", 1062 "key": { 1063 "type": "Identifier", 1064 "name": "e3", 1065 "decorators": [], 1066 "loc": { 1067 "start": { 1068 "line": 20, 1069 "column": 32, 1070 "program": "switch_enum_string_case.ets" 1071 }, 1072 "end": { 1073 "line": 20, 1074 "column": 34, 1075 "program": "switch_enum_string_case.ets" 1076 } 1077 } 1078 }, 1079 "value": { 1080 "type": "ETSNewClassInstanceExpression", 1081 "typeReference": { 1082 "type": "ETSTypeReference", 1083 "part": { 1084 "type": "ETSTypeReferencePart", 1085 "name": { 1086 "type": "Identifier", 1087 "name": "Enum", 1088 "decorators": [], 1089 "loc": { 1090 "start": { 1091 "line": 20, 1092 "column": 1, 1093 "program": "switch_enum_string_case.ets" 1094 }, 1095 "end": { 1096 "line": 20, 1097 "column": 1, 1098 "program": "switch_enum_string_case.ets" 1099 } 1100 } 1101 }, 1102 "loc": { 1103 "start": { 1104 "line": 20, 1105 "column": 1, 1106 "program": "switch_enum_string_case.ets" 1107 }, 1108 "end": { 1109 "line": 20, 1110 "column": 1, 1111 "program": "switch_enum_string_case.ets" 1112 } 1113 } 1114 }, 1115 "loc": { 1116 "start": { 1117 "line": 20, 1118 "column": 1, 1119 "program": "switch_enum_string_case.ets" 1120 }, 1121 "end": { 1122 "line": 20, 1123 "column": 1, 1124 "program": "switch_enum_string_case.ets" 1125 } 1126 } 1127 }, 1128 "arguments": [ 1129 { 1130 "type": "NumberLiteral", 1131 "value": 2, 1132 "loc": { 1133 "start": { 1134 "line": 20, 1135 "column": 1, 1136 "program": "switch_enum_string_case.ets" 1137 }, 1138 "end": { 1139 "line": 20, 1140 "column": 1, 1141 "program": "switch_enum_string_case.ets" 1142 } 1143 } 1144 }, 1145 { 1146 "type": "StringLiteral", 1147 "value": "C", 1148 "loc": { 1149 "start": { 1150 "line": 20, 1151 "column": 1, 1152 "program": "switch_enum_string_case.ets" 1153 }, 1154 "end": { 1155 "line": 20, 1156 "column": 1, 1157 "program": "switch_enum_string_case.ets" 1158 } 1159 } 1160 } 1161 ], 1162 "loc": { 1163 "start": { 1164 "line": 20, 1165 "column": 37, 1166 "program": "switch_enum_string_case.ets" 1167 }, 1168 "end": { 1169 "line": 20, 1170 "column": 40, 1171 "program": "switch_enum_string_case.ets" 1172 } 1173 } 1174 }, 1175 "accessibility": "public", 1176 "static": true, 1177 "readonly": true, 1178 "declare": false, 1179 "optional": false, 1180 "computed": false, 1181 "typeAnnotation": { 1182 "type": "ETSTypeReference", 1183 "part": { 1184 "type": "ETSTypeReferencePart", 1185 "name": { 1186 "type": "Identifier", 1187 "name": "Enum", 1188 "decorators": [], 1189 "loc": { 1190 "start": { 1191 "line": 20, 1192 "column": 1, 1193 "program": "switch_enum_string_case.ets" 1194 }, 1195 "end": { 1196 "line": 20, 1197 "column": 1, 1198 "program": "switch_enum_string_case.ets" 1199 } 1200 } 1201 }, 1202 "loc": { 1203 "start": { 1204 "line": 20, 1205 "column": 1, 1206 "program": "switch_enum_string_case.ets" 1207 }, 1208 "end": { 1209 "line": 20, 1210 "column": 1, 1211 "program": "switch_enum_string_case.ets" 1212 } 1213 } 1214 }, 1215 "loc": { 1216 "start": { 1217 "line": 20, 1218 "column": 1, 1219 "program": "switch_enum_string_case.ets" 1220 }, 1221 "end": { 1222 "line": 20, 1223 "column": 1, 1224 "program": "switch_enum_string_case.ets" 1225 } 1226 } 1227 }, 1228 "definite": false, 1229 "decorators": [], 1230 "loc": { 1231 "start": { 1232 "line": 20, 1233 "column": 32, 1234 "program": "switch_enum_string_case.ets" 1235 }, 1236 "end": { 1237 "line": 20, 1238 "column": 40, 1239 "program": "switch_enum_string_case.ets" 1240 } 1241 } 1242 }, 1243 { 1244 "type": "ClassProperty", 1245 "key": { 1246 "type": "Identifier", 1247 "name": "#NamesArray", 1248 "decorators": [], 1249 "loc": { 1250 "start": { 1251 "line": 20, 1252 "column": 1, 1253 "program": "switch_enum_string_case.ets" 1254 }, 1255 "end": { 1256 "line": 20, 1257 "column": 1, 1258 "program": "switch_enum_string_case.ets" 1259 } 1260 } 1261 }, 1262 "value": { 1263 "type": "ArrayExpression", 1264 "elements": [ 1265 { 1266 "type": "StringLiteral", 1267 "value": "e1", 1268 "loc": { 1269 "start": { 1270 "line": 20, 1271 "column": 1, 1272 "program": "switch_enum_string_case.ets" 1273 }, 1274 "end": { 1275 "line": 20, 1276 "column": 1, 1277 "program": "switch_enum_string_case.ets" 1278 } 1279 } 1280 }, 1281 { 1282 "type": "StringLiteral", 1283 "value": "e2", 1284 "loc": { 1285 "start": { 1286 "line": 20, 1287 "column": 1, 1288 "program": "switch_enum_string_case.ets" 1289 }, 1290 "end": { 1291 "line": 20, 1292 "column": 1, 1293 "program": "switch_enum_string_case.ets" 1294 } 1295 } 1296 }, 1297 { 1298 "type": "StringLiteral", 1299 "value": "e3", 1300 "loc": { 1301 "start": { 1302 "line": 20, 1303 "column": 1, 1304 "program": "switch_enum_string_case.ets" 1305 }, 1306 "end": { 1307 "line": 20, 1308 "column": 1, 1309 "program": "switch_enum_string_case.ets" 1310 } 1311 } 1312 } 1313 ], 1314 "loc": { 1315 "start": { 1316 "line": 20, 1317 "column": 1, 1318 "program": "switch_enum_string_case.ets" 1319 }, 1320 "end": { 1321 "line": 20, 1322 "column": 1, 1323 "program": "switch_enum_string_case.ets" 1324 } 1325 } 1326 }, 1327 "accessibility": "private", 1328 "static": true, 1329 "readonly": true, 1330 "declare": false, 1331 "optional": false, 1332 "computed": false, 1333 "typeAnnotation": { 1334 "type": "TSArrayType", 1335 "elementType": { 1336 "type": "ETSTypeReference", 1337 "part": { 1338 "type": "ETSTypeReferencePart", 1339 "name": { 1340 "type": "Identifier", 1341 "name": "String", 1342 "decorators": [], 1343 "loc": { 1344 "start": { 1345 "line": 20, 1346 "column": 1, 1347 "program": "switch_enum_string_case.ets" 1348 }, 1349 "end": { 1350 "line": 20, 1351 "column": 1, 1352 "program": "switch_enum_string_case.ets" 1353 } 1354 } 1355 }, 1356 "loc": { 1357 "start": { 1358 "line": 20, 1359 "column": 1, 1360 "program": "switch_enum_string_case.ets" 1361 }, 1362 "end": { 1363 "line": 20, 1364 "column": 1, 1365 "program": "switch_enum_string_case.ets" 1366 } 1367 } 1368 }, 1369 "loc": { 1370 "start": { 1371 "line": 20, 1372 "column": 1, 1373 "program": "switch_enum_string_case.ets" 1374 }, 1375 "end": { 1376 "line": 20, 1377 "column": 1, 1378 "program": "switch_enum_string_case.ets" 1379 } 1380 } 1381 }, 1382 "annotations": [], 1383 "loc": { 1384 "start": { 1385 "line": 20, 1386 "column": 1, 1387 "program": "switch_enum_string_case.ets" 1388 }, 1389 "end": { 1390 "line": 20, 1391 "column": 1, 1392 "program": "switch_enum_string_case.ets" 1393 } 1394 } 1395 }, 1396 "definite": false, 1397 "decorators": [], 1398 "loc": { 1399 "start": { 1400 "line": 20, 1401 "column": 1, 1402 "program": "switch_enum_string_case.ets" 1403 }, 1404 "end": { 1405 "line": 20, 1406 "column": 1, 1407 "program": "switch_enum_string_case.ets" 1408 } 1409 } 1410 }, 1411 { 1412 "type": "ClassProperty", 1413 "key": { 1414 "type": "Identifier", 1415 "name": "#StringValuesArray", 1416 "decorators": [], 1417 "loc": { 1418 "start": { 1419 "line": 20, 1420 "column": 1, 1421 "program": "switch_enum_string_case.ets" 1422 }, 1423 "end": { 1424 "line": 20, 1425 "column": 1, 1426 "program": "switch_enum_string_case.ets" 1427 } 1428 } 1429 }, 1430 "value": { 1431 "type": "ArrayExpression", 1432 "elements": [ 1433 { 1434 "type": "StringLiteral", 1435 "value": "A", 1436 "loc": { 1437 "start": { 1438 "line": 20, 1439 "column": 1, 1440 "program": "switch_enum_string_case.ets" 1441 }, 1442 "end": { 1443 "line": 20, 1444 "column": 1, 1445 "program": "switch_enum_string_case.ets" 1446 } 1447 } 1448 }, 1449 { 1450 "type": "StringLiteral", 1451 "value": "B", 1452 "loc": { 1453 "start": { 1454 "line": 20, 1455 "column": 1, 1456 "program": "switch_enum_string_case.ets" 1457 }, 1458 "end": { 1459 "line": 20, 1460 "column": 1, 1461 "program": "switch_enum_string_case.ets" 1462 } 1463 } 1464 }, 1465 { 1466 "type": "StringLiteral", 1467 "value": "C", 1468 "loc": { 1469 "start": { 1470 "line": 20, 1471 "column": 1, 1472 "program": "switch_enum_string_case.ets" 1473 }, 1474 "end": { 1475 "line": 20, 1476 "column": 1, 1477 "program": "switch_enum_string_case.ets" 1478 } 1479 } 1480 } 1481 ], 1482 "loc": { 1483 "start": { 1484 "line": 20, 1485 "column": 1, 1486 "program": "switch_enum_string_case.ets" 1487 }, 1488 "end": { 1489 "line": 20, 1490 "column": 1, 1491 "program": "switch_enum_string_case.ets" 1492 } 1493 } 1494 }, 1495 "accessibility": "private", 1496 "static": true, 1497 "readonly": true, 1498 "declare": false, 1499 "optional": false, 1500 "computed": false, 1501 "typeAnnotation": { 1502 "type": "TSArrayType", 1503 "elementType": { 1504 "type": "ETSTypeReference", 1505 "part": { 1506 "type": "ETSTypeReferencePart", 1507 "name": { 1508 "type": "Identifier", 1509 "name": "String", 1510 "decorators": [], 1511 "loc": { 1512 "start": { 1513 "line": 20, 1514 "column": 1, 1515 "program": "switch_enum_string_case.ets" 1516 }, 1517 "end": { 1518 "line": 20, 1519 "column": 1, 1520 "program": "switch_enum_string_case.ets" 1521 } 1522 } 1523 }, 1524 "loc": { 1525 "start": { 1526 "line": 20, 1527 "column": 1, 1528 "program": "switch_enum_string_case.ets" 1529 }, 1530 "end": { 1531 "line": 20, 1532 "column": 1, 1533 "program": "switch_enum_string_case.ets" 1534 } 1535 } 1536 }, 1537 "loc": { 1538 "start": { 1539 "line": 20, 1540 "column": 1, 1541 "program": "switch_enum_string_case.ets" 1542 }, 1543 "end": { 1544 "line": 20, 1545 "column": 1, 1546 "program": "switch_enum_string_case.ets" 1547 } 1548 } 1549 }, 1550 "annotations": [], 1551 "loc": { 1552 "start": { 1553 "line": 20, 1554 "column": 1, 1555 "program": "switch_enum_string_case.ets" 1556 }, 1557 "end": { 1558 "line": 20, 1559 "column": 1, 1560 "program": "switch_enum_string_case.ets" 1561 } 1562 } 1563 }, 1564 "definite": false, 1565 "decorators": [], 1566 "loc": { 1567 "start": { 1568 "line": 20, 1569 "column": 1, 1570 "program": "switch_enum_string_case.ets" 1571 }, 1572 "end": { 1573 "line": 20, 1574 "column": 1, 1575 "program": "switch_enum_string_case.ets" 1576 } 1577 } 1578 }, 1579 { 1580 "type": "ClassProperty", 1581 "key": { 1582 "type": "Identifier", 1583 "name": "#ItemsArray", 1584 "decorators": [], 1585 "loc": { 1586 "start": { 1587 "line": 20, 1588 "column": 1, 1589 "program": "switch_enum_string_case.ets" 1590 }, 1591 "end": { 1592 "line": 20, 1593 "column": 1, 1594 "program": "switch_enum_string_case.ets" 1595 } 1596 } 1597 }, 1598 "value": { 1599 "type": "ArrayExpression", 1600 "elements": [ 1601 { 1602 "type": "MemberExpression", 1603 "object": { 1604 "type": "Identifier", 1605 "name": "Enum", 1606 "decorators": [], 1607 "loc": { 1608 "start": { 1609 "line": 20, 1610 "column": 6, 1611 "program": "switch_enum_string_case.ets" 1612 }, 1613 "end": { 1614 "line": 20, 1615 "column": 10, 1616 "program": "switch_enum_string_case.ets" 1617 } 1618 } 1619 }, 1620 "property": { 1621 "type": "Identifier", 1622 "name": "e1", 1623 "decorators": [], 1624 "loc": { 1625 "start": { 1626 "line": 20, 1627 "column": 12, 1628 "program": "switch_enum_string_case.ets" 1629 }, 1630 "end": { 1631 "line": 20, 1632 "column": 14, 1633 "program": "switch_enum_string_case.ets" 1634 } 1635 } 1636 }, 1637 "computed": false, 1638 "optional": false, 1639 "loc": { 1640 "start": { 1641 "line": 20, 1642 "column": 1, 1643 "program": "switch_enum_string_case.ets" 1644 }, 1645 "end": { 1646 "line": 20, 1647 "column": 1, 1648 "program": "switch_enum_string_case.ets" 1649 } 1650 } 1651 }, 1652 { 1653 "type": "MemberExpression", 1654 "object": { 1655 "type": "Identifier", 1656 "name": "Enum", 1657 "decorators": [], 1658 "loc": { 1659 "start": { 1660 "line": 20, 1661 "column": 6, 1662 "program": "switch_enum_string_case.ets" 1663 }, 1664 "end": { 1665 "line": 20, 1666 "column": 10, 1667 "program": "switch_enum_string_case.ets" 1668 } 1669 } 1670 }, 1671 "property": { 1672 "type": "Identifier", 1673 "name": "e2", 1674 "decorators": [], 1675 "loc": { 1676 "start": { 1677 "line": 20, 1678 "column": 22, 1679 "program": "switch_enum_string_case.ets" 1680 }, 1681 "end": { 1682 "line": 20, 1683 "column": 24, 1684 "program": "switch_enum_string_case.ets" 1685 } 1686 } 1687 }, 1688 "computed": false, 1689 "optional": false, 1690 "loc": { 1691 "start": { 1692 "line": 20, 1693 "column": 1, 1694 "program": "switch_enum_string_case.ets" 1695 }, 1696 "end": { 1697 "line": 20, 1698 "column": 1, 1699 "program": "switch_enum_string_case.ets" 1700 } 1701 } 1702 }, 1703 { 1704 "type": "MemberExpression", 1705 "object": { 1706 "type": "Identifier", 1707 "name": "Enum", 1708 "decorators": [], 1709 "loc": { 1710 "start": { 1711 "line": 20, 1712 "column": 6, 1713 "program": "switch_enum_string_case.ets" 1714 }, 1715 "end": { 1716 "line": 20, 1717 "column": 10, 1718 "program": "switch_enum_string_case.ets" 1719 } 1720 } 1721 }, 1722 "property": { 1723 "type": "Identifier", 1724 "name": "e3", 1725 "decorators": [], 1726 "loc": { 1727 "start": { 1728 "line": 20, 1729 "column": 32, 1730 "program": "switch_enum_string_case.ets" 1731 }, 1732 "end": { 1733 "line": 20, 1734 "column": 34, 1735 "program": "switch_enum_string_case.ets" 1736 } 1737 } 1738 }, 1739 "computed": false, 1740 "optional": false, 1741 "loc": { 1742 "start": { 1743 "line": 20, 1744 "column": 1, 1745 "program": "switch_enum_string_case.ets" 1746 }, 1747 "end": { 1748 "line": 20, 1749 "column": 1, 1750 "program": "switch_enum_string_case.ets" 1751 } 1752 } 1753 } 1754 ], 1755 "loc": { 1756 "start": { 1757 "line": 20, 1758 "column": 1, 1759 "program": "switch_enum_string_case.ets" 1760 }, 1761 "end": { 1762 "line": 20, 1763 "column": 1, 1764 "program": "switch_enum_string_case.ets" 1765 } 1766 } 1767 }, 1768 "accessibility": "private", 1769 "static": true, 1770 "readonly": true, 1771 "declare": false, 1772 "optional": false, 1773 "computed": false, 1774 "typeAnnotation": { 1775 "type": "TSArrayType", 1776 "elementType": { 1777 "type": "ETSTypeReference", 1778 "part": { 1779 "type": "ETSTypeReferencePart", 1780 "name": { 1781 "type": "Identifier", 1782 "name": "Enum", 1783 "decorators": [], 1784 "loc": { 1785 "start": { 1786 "line": 20, 1787 "column": 1, 1788 "program": "switch_enum_string_case.ets" 1789 }, 1790 "end": { 1791 "line": 20, 1792 "column": 1, 1793 "program": "switch_enum_string_case.ets" 1794 } 1795 } 1796 }, 1797 "loc": { 1798 "start": { 1799 "line": 20, 1800 "column": 1, 1801 "program": "switch_enum_string_case.ets" 1802 }, 1803 "end": { 1804 "line": 20, 1805 "column": 1, 1806 "program": "switch_enum_string_case.ets" 1807 } 1808 } 1809 }, 1810 "loc": { 1811 "start": { 1812 "line": 20, 1813 "column": 1, 1814 "program": "switch_enum_string_case.ets" 1815 }, 1816 "end": { 1817 "line": 20, 1818 "column": 1, 1819 "program": "switch_enum_string_case.ets" 1820 } 1821 } 1822 }, 1823 "annotations": [], 1824 "loc": { 1825 "start": { 1826 "line": 20, 1827 "column": 1, 1828 "program": "switch_enum_string_case.ets" 1829 }, 1830 "end": { 1831 "line": 20, 1832 "column": 1, 1833 "program": "switch_enum_string_case.ets" 1834 } 1835 } 1836 }, 1837 "definite": false, 1838 "decorators": [], 1839 "loc": { 1840 "start": { 1841 "line": 20, 1842 "column": 1, 1843 "program": "switch_enum_string_case.ets" 1844 }, 1845 "end": { 1846 "line": 20, 1847 "column": 1, 1848 "program": "switch_enum_string_case.ets" 1849 } 1850 } 1851 }, 1852 { 1853 "type": "MethodDefinition", 1854 "key": { 1855 "type": "Identifier", 1856 "name": "getName", 1857 "decorators": [], 1858 "loc": { 1859 "start": { 1860 "line": 20, 1861 "column": 1, 1862 "program": "switch_enum_string_case.ets" 1863 }, 1864 "end": { 1865 "line": 20, 1866 "column": 1, 1867 "program": "switch_enum_string_case.ets" 1868 } 1869 } 1870 }, 1871 "kind": "method", 1872 "accessibility": "public", 1873 "static": false, 1874 "optional": false, 1875 "computed": false, 1876 "value": { 1877 "type": "FunctionExpression", 1878 "function": { 1879 "type": "ScriptFunction", 1880 "id": { 1881 "type": "Identifier", 1882 "name": "getName", 1883 "decorators": [], 1884 "loc": { 1885 "start": { 1886 "line": 20, 1887 "column": 1, 1888 "program": "switch_enum_string_case.ets" 1889 }, 1890 "end": { 1891 "line": 20, 1892 "column": 1, 1893 "program": "switch_enum_string_case.ets" 1894 } 1895 } 1896 }, 1897 "generator": false, 1898 "async": false, 1899 "expression": false, 1900 "params": [], 1901 "returnType": { 1902 "type": "ETSTypeReference", 1903 "part": { 1904 "type": "ETSTypeReferencePart", 1905 "name": { 1906 "type": "Identifier", 1907 "name": "String", 1908 "decorators": [], 1909 "loc": { 1910 "start": { 1911 "line": 20, 1912 "column": 1, 1913 "program": "switch_enum_string_case.ets" 1914 }, 1915 "end": { 1916 "line": 20, 1917 "column": 1, 1918 "program": "switch_enum_string_case.ets" 1919 } 1920 } 1921 }, 1922 "loc": { 1923 "start": { 1924 "line": 20, 1925 "column": 1, 1926 "program": "switch_enum_string_case.ets" 1927 }, 1928 "end": { 1929 "line": 20, 1930 "column": 1, 1931 "program": "switch_enum_string_case.ets" 1932 } 1933 } 1934 }, 1935 "loc": { 1936 "start": { 1937 "line": 20, 1938 "column": 1, 1939 "program": "switch_enum_string_case.ets" 1940 }, 1941 "end": { 1942 "line": 20, 1943 "column": 1, 1944 "program": "switch_enum_string_case.ets" 1945 } 1946 } 1947 }, 1948 "body": { 1949 "type": "BlockStatement", 1950 "statements": [ 1951 { 1952 "type": "ReturnStatement", 1953 "argument": { 1954 "type": "MemberExpression", 1955 "object": { 1956 "type": "MemberExpression", 1957 "object": { 1958 "type": "Identifier", 1959 "name": "Enum", 1960 "decorators": [], 1961 "loc": { 1962 "start": { 1963 "line": 20, 1964 "column": 6, 1965 "program": "switch_enum_string_case.ets" 1966 }, 1967 "end": { 1968 "line": 20, 1969 "column": 10, 1970 "program": "switch_enum_string_case.ets" 1971 } 1972 } 1973 }, 1974 "property": { 1975 "type": "Identifier", 1976 "name": "#NamesArray", 1977 "decorators": [], 1978 "loc": { 1979 "start": { 1980 "line": 20, 1981 "column": 1, 1982 "program": "switch_enum_string_case.ets" 1983 }, 1984 "end": { 1985 "line": 20, 1986 "column": 1, 1987 "program": "switch_enum_string_case.ets" 1988 } 1989 } 1990 }, 1991 "computed": false, 1992 "optional": false, 1993 "loc": { 1994 "start": { 1995 "line": 20, 1996 "column": 1, 1997 "program": "switch_enum_string_case.ets" 1998 }, 1999 "end": { 2000 "line": 20, 2001 "column": 1, 2002 "program": "switch_enum_string_case.ets" 2003 } 2004 } 2005 }, 2006 "property": { 2007 "type": "MemberExpression", 2008 "object": { 2009 "type": "ThisExpression", 2010 "loc": { 2011 "start": { 2012 "line": 20, 2013 "column": 1, 2014 "program": "switch_enum_string_case.ets" 2015 }, 2016 "end": { 2017 "line": 20, 2018 "column": 1, 2019 "program": "switch_enum_string_case.ets" 2020 } 2021 } 2022 }, 2023 "property": { 2024 "type": "Identifier", 2025 "name": "#ordinal", 2026 "decorators": [], 2027 "loc": { 2028 "start": { 2029 "line": 20, 2030 "column": 1, 2031 "program": "switch_enum_string_case.ets" 2032 }, 2033 "end": { 2034 "line": 20, 2035 "column": 1, 2036 "program": "switch_enum_string_case.ets" 2037 } 2038 } 2039 }, 2040 "computed": false, 2041 "optional": false, 2042 "loc": { 2043 "start": { 2044 "line": 20, 2045 "column": 1, 2046 "program": "switch_enum_string_case.ets" 2047 }, 2048 "end": { 2049 "line": 20, 2050 "column": 1, 2051 "program": "switch_enum_string_case.ets" 2052 } 2053 } 2054 }, 2055 "computed": true, 2056 "optional": false, 2057 "loc": { 2058 "start": { 2059 "line": 20, 2060 "column": 1, 2061 "program": "switch_enum_string_case.ets" 2062 }, 2063 "end": { 2064 "line": 20, 2065 "column": 1, 2066 "program": "switch_enum_string_case.ets" 2067 } 2068 } 2069 }, 2070 "loc": { 2071 "start": { 2072 "line": 20, 2073 "column": 1, 2074 "program": "switch_enum_string_case.ets" 2075 }, 2076 "end": { 2077 "line": 20, 2078 "column": 1, 2079 "program": "switch_enum_string_case.ets" 2080 } 2081 } 2082 } 2083 ], 2084 "loc": { 2085 "start": { 2086 "line": 20, 2087 "column": 1, 2088 "program": "switch_enum_string_case.ets" 2089 }, 2090 "end": { 2091 "line": 20, 2092 "column": 1, 2093 "program": "switch_enum_string_case.ets" 2094 } 2095 } 2096 }, 2097 "loc": { 2098 "start": { 2099 "line": 20, 2100 "column": 1, 2101 "program": "switch_enum_string_case.ets" 2102 }, 2103 "end": { 2104 "line": 20, 2105 "column": 1, 2106 "program": "switch_enum_string_case.ets" 2107 } 2108 } 2109 }, 2110 "loc": { 2111 "start": { 2112 "line": 20, 2113 "column": 1, 2114 "program": "switch_enum_string_case.ets" 2115 }, 2116 "end": { 2117 "line": 20, 2118 "column": 1, 2119 "program": "switch_enum_string_case.ets" 2120 } 2121 } 2122 }, 2123 "overloads": [], 2124 "decorators": [], 2125 "loc": { 2126 "start": { 2127 "line": 20, 2128 "column": 1, 2129 "program": "switch_enum_string_case.ets" 2130 }, 2131 "end": { 2132 "line": 20, 2133 "column": 1, 2134 "program": "switch_enum_string_case.ets" 2135 } 2136 } 2137 }, 2138 { 2139 "type": "MethodDefinition", 2140 "key": { 2141 "type": "Identifier", 2142 "name": "getValueOf", 2143 "decorators": [], 2144 "loc": { 2145 "start": { 2146 "line": 20, 2147 "column": 1, 2148 "program": "switch_enum_string_case.ets" 2149 }, 2150 "end": { 2151 "line": 20, 2152 "column": 1, 2153 "program": "switch_enum_string_case.ets" 2154 } 2155 } 2156 }, 2157 "kind": "method", 2158 "accessibility": "public", 2159 "static": true, 2160 "optional": false, 2161 "computed": false, 2162 "value": { 2163 "type": "FunctionExpression", 2164 "function": { 2165 "type": "ScriptFunction", 2166 "id": { 2167 "type": "Identifier", 2168 "name": "getValueOf", 2169 "decorators": [], 2170 "loc": { 2171 "start": { 2172 "line": 20, 2173 "column": 1, 2174 "program": "switch_enum_string_case.ets" 2175 }, 2176 "end": { 2177 "line": 20, 2178 "column": 1, 2179 "program": "switch_enum_string_case.ets" 2180 } 2181 } 2182 }, 2183 "generator": false, 2184 "async": false, 2185 "expression": false, 2186 "params": [ 2187 { 2188 "type": "ETSParameterExpression", 2189 "name": { 2190 "type": "Identifier", 2191 "name": "name", 2192 "typeAnnotation": { 2193 "type": "ETSTypeReference", 2194 "part": { 2195 "type": "ETSTypeReferencePart", 2196 "name": { 2197 "type": "Identifier", 2198 "name": "String", 2199 "decorators": [], 2200 "loc": { 2201 "start": { 2202 "line": 20, 2203 "column": 1, 2204 "program": "switch_enum_string_case.ets" 2205 }, 2206 "end": { 2207 "line": 20, 2208 "column": 1, 2209 "program": "switch_enum_string_case.ets" 2210 } 2211 } 2212 }, 2213 "loc": { 2214 "start": { 2215 "line": 20, 2216 "column": 1, 2217 "program": "switch_enum_string_case.ets" 2218 }, 2219 "end": { 2220 "line": 20, 2221 "column": 1, 2222 "program": "switch_enum_string_case.ets" 2223 } 2224 } 2225 }, 2226 "loc": { 2227 "start": { 2228 "line": 20, 2229 "column": 1, 2230 "program": "switch_enum_string_case.ets" 2231 }, 2232 "end": { 2233 "line": 20, 2234 "column": 1, 2235 "program": "switch_enum_string_case.ets" 2236 } 2237 } 2238 }, 2239 "decorators": [], 2240 "loc": { 2241 "start": { 2242 "line": 20, 2243 "column": 1, 2244 "program": "switch_enum_string_case.ets" 2245 }, 2246 "end": { 2247 "line": 20, 2248 "column": 1, 2249 "program": "switch_enum_string_case.ets" 2250 } 2251 } 2252 }, 2253 "loc": { 2254 "start": { 2255 "line": 20, 2256 "column": 1, 2257 "program": "switch_enum_string_case.ets" 2258 }, 2259 "end": { 2260 "line": 20, 2261 "column": 1, 2262 "program": "switch_enum_string_case.ets" 2263 } 2264 } 2265 } 2266 ], 2267 "returnType": { 2268 "type": "ETSTypeReference", 2269 "part": { 2270 "type": "ETSTypeReferencePart", 2271 "name": { 2272 "type": "Identifier", 2273 "name": "Enum", 2274 "decorators": [], 2275 "loc": { 2276 "start": { 2277 "line": 20, 2278 "column": 1, 2279 "program": "switch_enum_string_case.ets" 2280 }, 2281 "end": { 2282 "line": 20, 2283 "column": 1, 2284 "program": "switch_enum_string_case.ets" 2285 } 2286 } 2287 }, 2288 "loc": { 2289 "start": { 2290 "line": 20, 2291 "column": 1, 2292 "program": "switch_enum_string_case.ets" 2293 }, 2294 "end": { 2295 "line": 20, 2296 "column": 1, 2297 "program": "switch_enum_string_case.ets" 2298 } 2299 } 2300 }, 2301 "loc": { 2302 "start": { 2303 "line": 20, 2304 "column": 1, 2305 "program": "switch_enum_string_case.ets" 2306 }, 2307 "end": { 2308 "line": 20, 2309 "column": 1, 2310 "program": "switch_enum_string_case.ets" 2311 } 2312 } 2313 }, 2314 "body": { 2315 "type": "BlockStatement", 2316 "statements": [ 2317 { 2318 "type": "ForUpdateStatement", 2319 "init": { 2320 "type": "VariableDeclaration", 2321 "declarations": [ 2322 { 2323 "type": "VariableDeclarator", 2324 "id": { 2325 "type": "Identifier", 2326 "name": "i", 2327 "decorators": [], 2328 "loc": { 2329 "start": { 2330 "line": 20, 2331 "column": 1, 2332 "program": "switch_enum_string_case.ets" 2333 }, 2334 "end": { 2335 "line": 20, 2336 "column": 1, 2337 "program": "switch_enum_string_case.ets" 2338 } 2339 } 2340 }, 2341 "init": { 2342 "type": "NumberLiteral", 2343 "value": 0, 2344 "loc": { 2345 "start": { 2346 "line": 20, 2347 "column": 1, 2348 "program": "switch_enum_string_case.ets" 2349 }, 2350 "end": { 2351 "line": 20, 2352 "column": 1, 2353 "program": "switch_enum_string_case.ets" 2354 } 2355 } 2356 }, 2357 "loc": { 2358 "start": { 2359 "line": 20, 2360 "column": 1, 2361 "program": "switch_enum_string_case.ets" 2362 }, 2363 "end": { 2364 "line": 20, 2365 "column": 1, 2366 "program": "switch_enum_string_case.ets" 2367 } 2368 } 2369 } 2370 ], 2371 "kind": "let", 2372 "loc": { 2373 "start": { 2374 "line": 20, 2375 "column": 1, 2376 "program": "switch_enum_string_case.ets" 2377 }, 2378 "end": { 2379 "line": 20, 2380 "column": 1, 2381 "program": "switch_enum_string_case.ets" 2382 } 2383 } 2384 }, 2385 "test": { 2386 "type": "BinaryExpression", 2387 "operator": "<", 2388 "left": { 2389 "type": "Identifier", 2390 "name": "i", 2391 "decorators": [], 2392 "loc": { 2393 "start": { 2394 "line": 20, 2395 "column": 1, 2396 "program": "switch_enum_string_case.ets" 2397 }, 2398 "end": { 2399 "line": 20, 2400 "column": 1, 2401 "program": "switch_enum_string_case.ets" 2402 } 2403 } 2404 }, 2405 "right": { 2406 "type": "MemberExpression", 2407 "object": { 2408 "type": "MemberExpression", 2409 "object": { 2410 "type": "Identifier", 2411 "name": "Enum", 2412 "decorators": [], 2413 "loc": { 2414 "start": { 2415 "line": 20, 2416 "column": 6, 2417 "program": "switch_enum_string_case.ets" 2418 }, 2419 "end": { 2420 "line": 20, 2421 "column": 10, 2422 "program": "switch_enum_string_case.ets" 2423 } 2424 } 2425 }, 2426 "property": { 2427 "type": "Identifier", 2428 "name": "#NamesArray", 2429 "decorators": [], 2430 "loc": { 2431 "start": { 2432 "line": 20, 2433 "column": 1, 2434 "program": "switch_enum_string_case.ets" 2435 }, 2436 "end": { 2437 "line": 20, 2438 "column": 1, 2439 "program": "switch_enum_string_case.ets" 2440 } 2441 } 2442 }, 2443 "computed": false, 2444 "optional": false, 2445 "loc": { 2446 "start": { 2447 "line": 20, 2448 "column": 1, 2449 "program": "switch_enum_string_case.ets" 2450 }, 2451 "end": { 2452 "line": 20, 2453 "column": 1, 2454 "program": "switch_enum_string_case.ets" 2455 } 2456 } 2457 }, 2458 "property": { 2459 "type": "Identifier", 2460 "name": "length", 2461 "decorators": [], 2462 "loc": { 2463 "start": { 2464 "line": 20, 2465 "column": 1, 2466 "program": "switch_enum_string_case.ets" 2467 }, 2468 "end": { 2469 "line": 20, 2470 "column": 1, 2471 "program": "switch_enum_string_case.ets" 2472 } 2473 } 2474 }, 2475 "computed": false, 2476 "optional": false, 2477 "loc": { 2478 "start": { 2479 "line": 20, 2480 "column": 1, 2481 "program": "switch_enum_string_case.ets" 2482 }, 2483 "end": { 2484 "line": 20, 2485 "column": 1, 2486 "program": "switch_enum_string_case.ets" 2487 } 2488 } 2489 }, 2490 "loc": { 2491 "start": { 2492 "line": 20, 2493 "column": 1, 2494 "program": "switch_enum_string_case.ets" 2495 }, 2496 "end": { 2497 "line": 20, 2498 "column": 1, 2499 "program": "switch_enum_string_case.ets" 2500 } 2501 } 2502 }, 2503 "update": { 2504 "type": "UpdateExpression", 2505 "operator": "++", 2506 "prefix": true, 2507 "argument": { 2508 "type": "Identifier", 2509 "name": "i", 2510 "decorators": [], 2511 "loc": { 2512 "start": { 2513 "line": 20, 2514 "column": 1, 2515 "program": "switch_enum_string_case.ets" 2516 }, 2517 "end": { 2518 "line": 20, 2519 "column": 1, 2520 "program": "switch_enum_string_case.ets" 2521 } 2522 } 2523 }, 2524 "loc": { 2525 "start": { 2526 "line": 20, 2527 "column": 1, 2528 "program": "switch_enum_string_case.ets" 2529 }, 2530 "end": { 2531 "line": 20, 2532 "column": 1, 2533 "program": "switch_enum_string_case.ets" 2534 } 2535 } 2536 }, 2537 "body": { 2538 "type": "IfStatement", 2539 "test": { 2540 "type": "BinaryExpression", 2541 "operator": "==", 2542 "left": { 2543 "type": "Identifier", 2544 "name": "name", 2545 "decorators": [], 2546 "loc": { 2547 "start": { 2548 "line": 20, 2549 "column": 1, 2550 "program": "switch_enum_string_case.ets" 2551 }, 2552 "end": { 2553 "line": 20, 2554 "column": 1, 2555 "program": "switch_enum_string_case.ets" 2556 } 2557 } 2558 }, 2559 "right": { 2560 "type": "MemberExpression", 2561 "object": { 2562 "type": "MemberExpression", 2563 "object": { 2564 "type": "Identifier", 2565 "name": "Enum", 2566 "decorators": [], 2567 "loc": { 2568 "start": { 2569 "line": 20, 2570 "column": 6, 2571 "program": "switch_enum_string_case.ets" 2572 }, 2573 "end": { 2574 "line": 20, 2575 "column": 10, 2576 "program": "switch_enum_string_case.ets" 2577 } 2578 } 2579 }, 2580 "property": { 2581 "type": "Identifier", 2582 "name": "#NamesArray", 2583 "decorators": [], 2584 "loc": { 2585 "start": { 2586 "line": 20, 2587 "column": 1, 2588 "program": "switch_enum_string_case.ets" 2589 }, 2590 "end": { 2591 "line": 20, 2592 "column": 1, 2593 "program": "switch_enum_string_case.ets" 2594 } 2595 } 2596 }, 2597 "computed": false, 2598 "optional": false, 2599 "loc": { 2600 "start": { 2601 "line": 20, 2602 "column": 1, 2603 "program": "switch_enum_string_case.ets" 2604 }, 2605 "end": { 2606 "line": 20, 2607 "column": 1, 2608 "program": "switch_enum_string_case.ets" 2609 } 2610 } 2611 }, 2612 "property": { 2613 "type": "Identifier", 2614 "name": "i", 2615 "decorators": [], 2616 "loc": { 2617 "start": { 2618 "line": 20, 2619 "column": 1, 2620 "program": "switch_enum_string_case.ets" 2621 }, 2622 "end": { 2623 "line": 20, 2624 "column": 1, 2625 "program": "switch_enum_string_case.ets" 2626 } 2627 } 2628 }, 2629 "computed": true, 2630 "optional": false, 2631 "loc": { 2632 "start": { 2633 "line": 20, 2634 "column": 1, 2635 "program": "switch_enum_string_case.ets" 2636 }, 2637 "end": { 2638 "line": 20, 2639 "column": 1, 2640 "program": "switch_enum_string_case.ets" 2641 } 2642 } 2643 }, 2644 "loc": { 2645 "start": { 2646 "line": 20, 2647 "column": 1, 2648 "program": "switch_enum_string_case.ets" 2649 }, 2650 "end": { 2651 "line": 20, 2652 "column": 1, 2653 "program": "switch_enum_string_case.ets" 2654 } 2655 } 2656 }, 2657 "consequent": { 2658 "type": "ReturnStatement", 2659 "argument": { 2660 "type": "MemberExpression", 2661 "object": { 2662 "type": "MemberExpression", 2663 "object": { 2664 "type": "Identifier", 2665 "name": "Enum", 2666 "decorators": [], 2667 "loc": { 2668 "start": { 2669 "line": 20, 2670 "column": 6, 2671 "program": "switch_enum_string_case.ets" 2672 }, 2673 "end": { 2674 "line": 20, 2675 "column": 10, 2676 "program": "switch_enum_string_case.ets" 2677 } 2678 } 2679 }, 2680 "property": { 2681 "type": "Identifier", 2682 "name": "#ItemsArray", 2683 "decorators": [], 2684 "loc": { 2685 "start": { 2686 "line": 20, 2687 "column": 1, 2688 "program": "switch_enum_string_case.ets" 2689 }, 2690 "end": { 2691 "line": 20, 2692 "column": 1, 2693 "program": "switch_enum_string_case.ets" 2694 } 2695 } 2696 }, 2697 "computed": false, 2698 "optional": false, 2699 "loc": { 2700 "start": { 2701 "line": 20, 2702 "column": 1, 2703 "program": "switch_enum_string_case.ets" 2704 }, 2705 "end": { 2706 "line": 20, 2707 "column": 1, 2708 "program": "switch_enum_string_case.ets" 2709 } 2710 } 2711 }, 2712 "property": { 2713 "type": "Identifier", 2714 "name": "i", 2715 "decorators": [], 2716 "loc": { 2717 "start": { 2718 "line": 20, 2719 "column": 1, 2720 "program": "switch_enum_string_case.ets" 2721 }, 2722 "end": { 2723 "line": 20, 2724 "column": 1, 2725 "program": "switch_enum_string_case.ets" 2726 } 2727 } 2728 }, 2729 "computed": true, 2730 "optional": false, 2731 "loc": { 2732 "start": { 2733 "line": 20, 2734 "column": 1, 2735 "program": "switch_enum_string_case.ets" 2736 }, 2737 "end": { 2738 "line": 20, 2739 "column": 1, 2740 "program": "switch_enum_string_case.ets" 2741 } 2742 } 2743 }, 2744 "loc": { 2745 "start": { 2746 "line": 20, 2747 "column": 1, 2748 "program": "switch_enum_string_case.ets" 2749 }, 2750 "end": { 2751 "line": 20, 2752 "column": 1, 2753 "program": "switch_enum_string_case.ets" 2754 } 2755 } 2756 }, 2757 "alternate": null, 2758 "loc": { 2759 "start": { 2760 "line": 20, 2761 "column": 1, 2762 "program": "switch_enum_string_case.ets" 2763 }, 2764 "end": { 2765 "line": 20, 2766 "column": 1, 2767 "program": "switch_enum_string_case.ets" 2768 } 2769 } 2770 }, 2771 "loc": { 2772 "start": { 2773 "line": 20, 2774 "column": 1, 2775 "program": "switch_enum_string_case.ets" 2776 }, 2777 "end": { 2778 "line": 20, 2779 "column": 1, 2780 "program": "switch_enum_string_case.ets" 2781 } 2782 } 2783 }, 2784 { 2785 "type": "ThrowStatement", 2786 "argument": { 2787 "type": "ETSNewClassInstanceExpression", 2788 "typeReference": { 2789 "type": "ETSTypeReference", 2790 "part": { 2791 "type": "ETSTypeReferencePart", 2792 "name": { 2793 "type": "Identifier", 2794 "name": "Error", 2795 "decorators": [], 2796 "loc": { 2797 "start": { 2798 "line": 20, 2799 "column": 1, 2800 "program": "switch_enum_string_case.ets" 2801 }, 2802 "end": { 2803 "line": 20, 2804 "column": 1, 2805 "program": "switch_enum_string_case.ets" 2806 } 2807 } 2808 }, 2809 "loc": { 2810 "start": { 2811 "line": 20, 2812 "column": 1, 2813 "program": "switch_enum_string_case.ets" 2814 }, 2815 "end": { 2816 "line": 20, 2817 "column": 1, 2818 "program": "switch_enum_string_case.ets" 2819 } 2820 } 2821 }, 2822 "loc": { 2823 "start": { 2824 "line": 20, 2825 "column": 1, 2826 "program": "switch_enum_string_case.ets" 2827 }, 2828 "end": { 2829 "line": 20, 2830 "column": 1, 2831 "program": "switch_enum_string_case.ets" 2832 } 2833 } 2834 }, 2835 "arguments": [ 2836 { 2837 "type": "BinaryExpression", 2838 "operator": "+", 2839 "left": { 2840 "type": "StringLiteral", 2841 "value": "No enum constant Enum.", 2842 "loc": { 2843 "start": { 2844 "line": 20, 2845 "column": 1, 2846 "program": "switch_enum_string_case.ets" 2847 }, 2848 "end": { 2849 "line": 20, 2850 "column": 1, 2851 "program": "switch_enum_string_case.ets" 2852 } 2853 } 2854 }, 2855 "right": { 2856 "type": "Identifier", 2857 "name": "name", 2858 "decorators": [], 2859 "loc": { 2860 "start": { 2861 "line": 20, 2862 "column": 1, 2863 "program": "switch_enum_string_case.ets" 2864 }, 2865 "end": { 2866 "line": 20, 2867 "column": 1, 2868 "program": "switch_enum_string_case.ets" 2869 } 2870 } 2871 }, 2872 "loc": { 2873 "start": { 2874 "line": 20, 2875 "column": 1, 2876 "program": "switch_enum_string_case.ets" 2877 }, 2878 "end": { 2879 "line": 20, 2880 "column": 1, 2881 "program": "switch_enum_string_case.ets" 2882 } 2883 } 2884 } 2885 ], 2886 "loc": { 2887 "start": { 2888 "line": 20, 2889 "column": 1, 2890 "program": "switch_enum_string_case.ets" 2891 }, 2892 "end": { 2893 "line": 20, 2894 "column": 1, 2895 "program": "switch_enum_string_case.ets" 2896 } 2897 } 2898 }, 2899 "loc": { 2900 "start": { 2901 "line": 20, 2902 "column": 1, 2903 "program": "switch_enum_string_case.ets" 2904 }, 2905 "end": { 2906 "line": 20, 2907 "column": 1, 2908 "program": "switch_enum_string_case.ets" 2909 } 2910 } 2911 } 2912 ], 2913 "loc": { 2914 "start": { 2915 "line": 20, 2916 "column": 1, 2917 "program": "switch_enum_string_case.ets" 2918 }, 2919 "end": { 2920 "line": 20, 2921 "column": 1, 2922 "program": "switch_enum_string_case.ets" 2923 } 2924 } 2925 }, 2926 "loc": { 2927 "start": { 2928 "line": 20, 2929 "column": 1, 2930 "program": "switch_enum_string_case.ets" 2931 }, 2932 "end": { 2933 "line": 20, 2934 "column": 1, 2935 "program": "switch_enum_string_case.ets" 2936 } 2937 } 2938 }, 2939 "loc": { 2940 "start": { 2941 "line": 20, 2942 "column": 1, 2943 "program": "switch_enum_string_case.ets" 2944 }, 2945 "end": { 2946 "line": 20, 2947 "column": 1, 2948 "program": "switch_enum_string_case.ets" 2949 } 2950 } 2951 }, 2952 "overloads": [], 2953 "decorators": [], 2954 "loc": { 2955 "start": { 2956 "line": 20, 2957 "column": 1, 2958 "program": "switch_enum_string_case.ets" 2959 }, 2960 "end": { 2961 "line": 20, 2962 "column": 1, 2963 "program": "switch_enum_string_case.ets" 2964 } 2965 } 2966 }, 2967 { 2968 "type": "MethodDefinition", 2969 "key": { 2970 "type": "Identifier", 2971 "name": "fromValue", 2972 "decorators": [], 2973 "loc": { 2974 "start": { 2975 "line": 20, 2976 "column": 1, 2977 "program": "switch_enum_string_case.ets" 2978 }, 2979 "end": { 2980 "line": 20, 2981 "column": 1, 2982 "program": "switch_enum_string_case.ets" 2983 } 2984 } 2985 }, 2986 "kind": "method", 2987 "accessibility": "public", 2988 "static": true, 2989 "optional": false, 2990 "computed": false, 2991 "value": { 2992 "type": "FunctionExpression", 2993 "function": { 2994 "type": "ScriptFunction", 2995 "id": { 2996 "type": "Identifier", 2997 "name": "fromValue", 2998 "decorators": [], 2999 "loc": { 3000 "start": { 3001 "line": 20, 3002 "column": 1, 3003 "program": "switch_enum_string_case.ets" 3004 }, 3005 "end": { 3006 "line": 20, 3007 "column": 1, 3008 "program": "switch_enum_string_case.ets" 3009 } 3010 } 3011 }, 3012 "generator": false, 3013 "async": false, 3014 "expression": false, 3015 "params": [ 3016 { 3017 "type": "ETSParameterExpression", 3018 "name": { 3019 "type": "Identifier", 3020 "name": "value", 3021 "typeAnnotation": { 3022 "type": "ETSTypeReference", 3023 "part": { 3024 "type": "ETSTypeReferencePart", 3025 "name": { 3026 "type": "Identifier", 3027 "name": "String", 3028 "decorators": [], 3029 "loc": { 3030 "start": { 3031 "line": 20, 3032 "column": 1, 3033 "program": "switch_enum_string_case.ets" 3034 }, 3035 "end": { 3036 "line": 20, 3037 "column": 1, 3038 "program": "switch_enum_string_case.ets" 3039 } 3040 } 3041 }, 3042 "loc": { 3043 "start": { 3044 "line": 20, 3045 "column": 1, 3046 "program": "switch_enum_string_case.ets" 3047 }, 3048 "end": { 3049 "line": 20, 3050 "column": 1, 3051 "program": "switch_enum_string_case.ets" 3052 } 3053 } 3054 }, 3055 "loc": { 3056 "start": { 3057 "line": 20, 3058 "column": 1, 3059 "program": "switch_enum_string_case.ets" 3060 }, 3061 "end": { 3062 "line": 20, 3063 "column": 1, 3064 "program": "switch_enum_string_case.ets" 3065 } 3066 } 3067 }, 3068 "decorators": [], 3069 "loc": { 3070 "start": { 3071 "line": 20, 3072 "column": 1, 3073 "program": "switch_enum_string_case.ets" 3074 }, 3075 "end": { 3076 "line": 20, 3077 "column": 1, 3078 "program": "switch_enum_string_case.ets" 3079 } 3080 } 3081 }, 3082 "loc": { 3083 "start": { 3084 "line": 20, 3085 "column": 1, 3086 "program": "switch_enum_string_case.ets" 3087 }, 3088 "end": { 3089 "line": 20, 3090 "column": 1, 3091 "program": "switch_enum_string_case.ets" 3092 } 3093 } 3094 } 3095 ], 3096 "returnType": { 3097 "type": "ETSTypeReference", 3098 "part": { 3099 "type": "ETSTypeReferencePart", 3100 "name": { 3101 "type": "Identifier", 3102 "name": "Enum", 3103 "decorators": [], 3104 "loc": { 3105 "start": { 3106 "line": 20, 3107 "column": 1, 3108 "program": "switch_enum_string_case.ets" 3109 }, 3110 "end": { 3111 "line": 20, 3112 "column": 1, 3113 "program": "switch_enum_string_case.ets" 3114 } 3115 } 3116 }, 3117 "loc": { 3118 "start": { 3119 "line": 20, 3120 "column": 1, 3121 "program": "switch_enum_string_case.ets" 3122 }, 3123 "end": { 3124 "line": 20, 3125 "column": 1, 3126 "program": "switch_enum_string_case.ets" 3127 } 3128 } 3129 }, 3130 "loc": { 3131 "start": { 3132 "line": 20, 3133 "column": 1, 3134 "program": "switch_enum_string_case.ets" 3135 }, 3136 "end": { 3137 "line": 20, 3138 "column": 1, 3139 "program": "switch_enum_string_case.ets" 3140 } 3141 } 3142 }, 3143 "body": { 3144 "type": "BlockStatement", 3145 "statements": [ 3146 { 3147 "type": "ForUpdateStatement", 3148 "init": { 3149 "type": "VariableDeclaration", 3150 "declarations": [ 3151 { 3152 "type": "VariableDeclarator", 3153 "id": { 3154 "type": "Identifier", 3155 "name": "i", 3156 "decorators": [], 3157 "loc": { 3158 "start": { 3159 "line": 20, 3160 "column": 1, 3161 "program": "switch_enum_string_case.ets" 3162 }, 3163 "end": { 3164 "line": 20, 3165 "column": 1, 3166 "program": "switch_enum_string_case.ets" 3167 } 3168 } 3169 }, 3170 "init": { 3171 "type": "NumberLiteral", 3172 "value": 0, 3173 "loc": { 3174 "start": { 3175 "line": 20, 3176 "column": 1, 3177 "program": "switch_enum_string_case.ets" 3178 }, 3179 "end": { 3180 "line": 20, 3181 "column": 1, 3182 "program": "switch_enum_string_case.ets" 3183 } 3184 } 3185 }, 3186 "loc": { 3187 "start": { 3188 "line": 20, 3189 "column": 1, 3190 "program": "switch_enum_string_case.ets" 3191 }, 3192 "end": { 3193 "line": 20, 3194 "column": 1, 3195 "program": "switch_enum_string_case.ets" 3196 } 3197 } 3198 } 3199 ], 3200 "kind": "let", 3201 "loc": { 3202 "start": { 3203 "line": 20, 3204 "column": 1, 3205 "program": "switch_enum_string_case.ets" 3206 }, 3207 "end": { 3208 "line": 20, 3209 "column": 1, 3210 "program": "switch_enum_string_case.ets" 3211 } 3212 } 3213 }, 3214 "test": { 3215 "type": "BinaryExpression", 3216 "operator": "<", 3217 "left": { 3218 "type": "Identifier", 3219 "name": "i", 3220 "decorators": [], 3221 "loc": { 3222 "start": { 3223 "line": 20, 3224 "column": 1, 3225 "program": "switch_enum_string_case.ets" 3226 }, 3227 "end": { 3228 "line": 20, 3229 "column": 1, 3230 "program": "switch_enum_string_case.ets" 3231 } 3232 } 3233 }, 3234 "right": { 3235 "type": "MemberExpression", 3236 "object": { 3237 "type": "MemberExpression", 3238 "object": { 3239 "type": "Identifier", 3240 "name": "Enum", 3241 "decorators": [], 3242 "loc": { 3243 "start": { 3244 "line": 20, 3245 "column": 6, 3246 "program": "switch_enum_string_case.ets" 3247 }, 3248 "end": { 3249 "line": 20, 3250 "column": 10, 3251 "program": "switch_enum_string_case.ets" 3252 } 3253 } 3254 }, 3255 "property": { 3256 "type": "Identifier", 3257 "name": "#StringValuesArray", 3258 "decorators": [], 3259 "loc": { 3260 "start": { 3261 "line": 20, 3262 "column": 1, 3263 "program": "switch_enum_string_case.ets" 3264 }, 3265 "end": { 3266 "line": 20, 3267 "column": 1, 3268 "program": "switch_enum_string_case.ets" 3269 } 3270 } 3271 }, 3272 "computed": false, 3273 "optional": false, 3274 "loc": { 3275 "start": { 3276 "line": 20, 3277 "column": 1, 3278 "program": "switch_enum_string_case.ets" 3279 }, 3280 "end": { 3281 "line": 20, 3282 "column": 1, 3283 "program": "switch_enum_string_case.ets" 3284 } 3285 } 3286 }, 3287 "property": { 3288 "type": "Identifier", 3289 "name": "length", 3290 "decorators": [], 3291 "loc": { 3292 "start": { 3293 "line": 20, 3294 "column": 1, 3295 "program": "switch_enum_string_case.ets" 3296 }, 3297 "end": { 3298 "line": 20, 3299 "column": 1, 3300 "program": "switch_enum_string_case.ets" 3301 } 3302 } 3303 }, 3304 "computed": false, 3305 "optional": false, 3306 "loc": { 3307 "start": { 3308 "line": 20, 3309 "column": 1, 3310 "program": "switch_enum_string_case.ets" 3311 }, 3312 "end": { 3313 "line": 20, 3314 "column": 1, 3315 "program": "switch_enum_string_case.ets" 3316 } 3317 } 3318 }, 3319 "loc": { 3320 "start": { 3321 "line": 20, 3322 "column": 1, 3323 "program": "switch_enum_string_case.ets" 3324 }, 3325 "end": { 3326 "line": 20, 3327 "column": 1, 3328 "program": "switch_enum_string_case.ets" 3329 } 3330 } 3331 }, 3332 "update": { 3333 "type": "UpdateExpression", 3334 "operator": "++", 3335 "prefix": true, 3336 "argument": { 3337 "type": "Identifier", 3338 "name": "i", 3339 "decorators": [], 3340 "loc": { 3341 "start": { 3342 "line": 20, 3343 "column": 1, 3344 "program": "switch_enum_string_case.ets" 3345 }, 3346 "end": { 3347 "line": 20, 3348 "column": 1, 3349 "program": "switch_enum_string_case.ets" 3350 } 3351 } 3352 }, 3353 "loc": { 3354 "start": { 3355 "line": 20, 3356 "column": 1, 3357 "program": "switch_enum_string_case.ets" 3358 }, 3359 "end": { 3360 "line": 20, 3361 "column": 1, 3362 "program": "switch_enum_string_case.ets" 3363 } 3364 } 3365 }, 3366 "body": { 3367 "type": "IfStatement", 3368 "test": { 3369 "type": "BinaryExpression", 3370 "operator": "==", 3371 "left": { 3372 "type": "Identifier", 3373 "name": "value", 3374 "decorators": [], 3375 "loc": { 3376 "start": { 3377 "line": 20, 3378 "column": 1, 3379 "program": "switch_enum_string_case.ets" 3380 }, 3381 "end": { 3382 "line": 20, 3383 "column": 1, 3384 "program": "switch_enum_string_case.ets" 3385 } 3386 } 3387 }, 3388 "right": { 3389 "type": "MemberExpression", 3390 "object": { 3391 "type": "MemberExpression", 3392 "object": { 3393 "type": "Identifier", 3394 "name": "Enum", 3395 "decorators": [], 3396 "loc": { 3397 "start": { 3398 "line": 20, 3399 "column": 6, 3400 "program": "switch_enum_string_case.ets" 3401 }, 3402 "end": { 3403 "line": 20, 3404 "column": 10, 3405 "program": "switch_enum_string_case.ets" 3406 } 3407 } 3408 }, 3409 "property": { 3410 "type": "Identifier", 3411 "name": "#StringValuesArray", 3412 "decorators": [], 3413 "loc": { 3414 "start": { 3415 "line": 20, 3416 "column": 1, 3417 "program": "switch_enum_string_case.ets" 3418 }, 3419 "end": { 3420 "line": 20, 3421 "column": 1, 3422 "program": "switch_enum_string_case.ets" 3423 } 3424 } 3425 }, 3426 "computed": false, 3427 "optional": false, 3428 "loc": { 3429 "start": { 3430 "line": 20, 3431 "column": 1, 3432 "program": "switch_enum_string_case.ets" 3433 }, 3434 "end": { 3435 "line": 20, 3436 "column": 1, 3437 "program": "switch_enum_string_case.ets" 3438 } 3439 } 3440 }, 3441 "property": { 3442 "type": "Identifier", 3443 "name": "i", 3444 "decorators": [], 3445 "loc": { 3446 "start": { 3447 "line": 20, 3448 "column": 1, 3449 "program": "switch_enum_string_case.ets" 3450 }, 3451 "end": { 3452 "line": 20, 3453 "column": 1, 3454 "program": "switch_enum_string_case.ets" 3455 } 3456 } 3457 }, 3458 "computed": true, 3459 "optional": false, 3460 "loc": { 3461 "start": { 3462 "line": 20, 3463 "column": 1, 3464 "program": "switch_enum_string_case.ets" 3465 }, 3466 "end": { 3467 "line": 20, 3468 "column": 1, 3469 "program": "switch_enum_string_case.ets" 3470 } 3471 } 3472 }, 3473 "loc": { 3474 "start": { 3475 "line": 20, 3476 "column": 1, 3477 "program": "switch_enum_string_case.ets" 3478 }, 3479 "end": { 3480 "line": 20, 3481 "column": 1, 3482 "program": "switch_enum_string_case.ets" 3483 } 3484 } 3485 }, 3486 "consequent": { 3487 "type": "ReturnStatement", 3488 "argument": { 3489 "type": "MemberExpression", 3490 "object": { 3491 "type": "MemberExpression", 3492 "object": { 3493 "type": "Identifier", 3494 "name": "Enum", 3495 "decorators": [], 3496 "loc": { 3497 "start": { 3498 "line": 20, 3499 "column": 6, 3500 "program": "switch_enum_string_case.ets" 3501 }, 3502 "end": { 3503 "line": 20, 3504 "column": 10, 3505 "program": "switch_enum_string_case.ets" 3506 } 3507 } 3508 }, 3509 "property": { 3510 "type": "Identifier", 3511 "name": "#ItemsArray", 3512 "decorators": [], 3513 "loc": { 3514 "start": { 3515 "line": 20, 3516 "column": 1, 3517 "program": "switch_enum_string_case.ets" 3518 }, 3519 "end": { 3520 "line": 20, 3521 "column": 1, 3522 "program": "switch_enum_string_case.ets" 3523 } 3524 } 3525 }, 3526 "computed": false, 3527 "optional": false, 3528 "loc": { 3529 "start": { 3530 "line": 20, 3531 "column": 1, 3532 "program": "switch_enum_string_case.ets" 3533 }, 3534 "end": { 3535 "line": 20, 3536 "column": 1, 3537 "program": "switch_enum_string_case.ets" 3538 } 3539 } 3540 }, 3541 "property": { 3542 "type": "Identifier", 3543 "name": "i", 3544 "decorators": [], 3545 "loc": { 3546 "start": { 3547 "line": 20, 3548 "column": 1, 3549 "program": "switch_enum_string_case.ets" 3550 }, 3551 "end": { 3552 "line": 20, 3553 "column": 1, 3554 "program": "switch_enum_string_case.ets" 3555 } 3556 } 3557 }, 3558 "computed": true, 3559 "optional": false, 3560 "loc": { 3561 "start": { 3562 "line": 20, 3563 "column": 1, 3564 "program": "switch_enum_string_case.ets" 3565 }, 3566 "end": { 3567 "line": 20, 3568 "column": 1, 3569 "program": "switch_enum_string_case.ets" 3570 } 3571 } 3572 }, 3573 "loc": { 3574 "start": { 3575 "line": 20, 3576 "column": 1, 3577 "program": "switch_enum_string_case.ets" 3578 }, 3579 "end": { 3580 "line": 20, 3581 "column": 1, 3582 "program": "switch_enum_string_case.ets" 3583 } 3584 } 3585 }, 3586 "alternate": null, 3587 "loc": { 3588 "start": { 3589 "line": 20, 3590 "column": 1, 3591 "program": "switch_enum_string_case.ets" 3592 }, 3593 "end": { 3594 "line": 20, 3595 "column": 1, 3596 "program": "switch_enum_string_case.ets" 3597 } 3598 } 3599 }, 3600 "loc": { 3601 "start": { 3602 "line": 20, 3603 "column": 1, 3604 "program": "switch_enum_string_case.ets" 3605 }, 3606 "end": { 3607 "line": 20, 3608 "column": 1, 3609 "program": "switch_enum_string_case.ets" 3610 } 3611 } 3612 }, 3613 { 3614 "type": "ThrowStatement", 3615 "argument": { 3616 "type": "ETSNewClassInstanceExpression", 3617 "typeReference": { 3618 "type": "ETSTypeReference", 3619 "part": { 3620 "type": "ETSTypeReferencePart", 3621 "name": { 3622 "type": "Identifier", 3623 "name": "Error", 3624 "decorators": [], 3625 "loc": { 3626 "start": { 3627 "line": 20, 3628 "column": 1, 3629 "program": "switch_enum_string_case.ets" 3630 }, 3631 "end": { 3632 "line": 20, 3633 "column": 1, 3634 "program": "switch_enum_string_case.ets" 3635 } 3636 } 3637 }, 3638 "loc": { 3639 "start": { 3640 "line": 20, 3641 "column": 1, 3642 "program": "switch_enum_string_case.ets" 3643 }, 3644 "end": { 3645 "line": 20, 3646 "column": 1, 3647 "program": "switch_enum_string_case.ets" 3648 } 3649 } 3650 }, 3651 "loc": { 3652 "start": { 3653 "line": 20, 3654 "column": 1, 3655 "program": "switch_enum_string_case.ets" 3656 }, 3657 "end": { 3658 "line": 20, 3659 "column": 1, 3660 "program": "switch_enum_string_case.ets" 3661 } 3662 } 3663 }, 3664 "arguments": [ 3665 { 3666 "type": "BinaryExpression", 3667 "operator": "+", 3668 "left": { 3669 "type": "StringLiteral", 3670 "value": "No enum Enum with value ", 3671 "loc": { 3672 "start": { 3673 "line": 20, 3674 "column": 1, 3675 "program": "switch_enum_string_case.ets" 3676 }, 3677 "end": { 3678 "line": 20, 3679 "column": 1, 3680 "program": "switch_enum_string_case.ets" 3681 } 3682 } 3683 }, 3684 "right": { 3685 "type": "Identifier", 3686 "name": "value", 3687 "decorators": [], 3688 "loc": { 3689 "start": { 3690 "line": 20, 3691 "column": 1, 3692 "program": "switch_enum_string_case.ets" 3693 }, 3694 "end": { 3695 "line": 20, 3696 "column": 1, 3697 "program": "switch_enum_string_case.ets" 3698 } 3699 } 3700 }, 3701 "loc": { 3702 "start": { 3703 "line": 20, 3704 "column": 1, 3705 "program": "switch_enum_string_case.ets" 3706 }, 3707 "end": { 3708 "line": 20, 3709 "column": 1, 3710 "program": "switch_enum_string_case.ets" 3711 } 3712 } 3713 } 3714 ], 3715 "loc": { 3716 "start": { 3717 "line": 20, 3718 "column": 1, 3719 "program": "switch_enum_string_case.ets" 3720 }, 3721 "end": { 3722 "line": 20, 3723 "column": 1, 3724 "program": "switch_enum_string_case.ets" 3725 } 3726 } 3727 }, 3728 "loc": { 3729 "start": { 3730 "line": 20, 3731 "column": 1, 3732 "program": "switch_enum_string_case.ets" 3733 }, 3734 "end": { 3735 "line": 20, 3736 "column": 1, 3737 "program": "switch_enum_string_case.ets" 3738 } 3739 } 3740 } 3741 ], 3742 "loc": { 3743 "start": { 3744 "line": 20, 3745 "column": 1, 3746 "program": "switch_enum_string_case.ets" 3747 }, 3748 "end": { 3749 "line": 20, 3750 "column": 1, 3751 "program": "switch_enum_string_case.ets" 3752 } 3753 } 3754 }, 3755 "loc": { 3756 "start": { 3757 "line": 20, 3758 "column": 1, 3759 "program": "switch_enum_string_case.ets" 3760 }, 3761 "end": { 3762 "line": 20, 3763 "column": 1, 3764 "program": "switch_enum_string_case.ets" 3765 } 3766 } 3767 }, 3768 "loc": { 3769 "start": { 3770 "line": 20, 3771 "column": 1, 3772 "program": "switch_enum_string_case.ets" 3773 }, 3774 "end": { 3775 "line": 20, 3776 "column": 1, 3777 "program": "switch_enum_string_case.ets" 3778 } 3779 } 3780 }, 3781 "overloads": [], 3782 "decorators": [], 3783 "loc": { 3784 "start": { 3785 "line": 20, 3786 "column": 1, 3787 "program": "switch_enum_string_case.ets" 3788 }, 3789 "end": { 3790 "line": 20, 3791 "column": 1, 3792 "program": "switch_enum_string_case.ets" 3793 } 3794 } 3795 }, 3796 { 3797 "type": "MethodDefinition", 3798 "key": { 3799 "type": "Identifier", 3800 "name": "valueOf", 3801 "decorators": [], 3802 "loc": { 3803 "start": { 3804 "line": 20, 3805 "column": 1, 3806 "program": "switch_enum_string_case.ets" 3807 }, 3808 "end": { 3809 "line": 20, 3810 "column": 1, 3811 "program": "switch_enum_string_case.ets" 3812 } 3813 } 3814 }, 3815 "kind": "method", 3816 "accessibility": "public", 3817 "static": false, 3818 "optional": false, 3819 "computed": false, 3820 "value": { 3821 "type": "FunctionExpression", 3822 "function": { 3823 "type": "ScriptFunction", 3824 "id": { 3825 "type": "Identifier", 3826 "name": "valueOf", 3827 "decorators": [], 3828 "loc": { 3829 "start": { 3830 "line": 20, 3831 "column": 1, 3832 "program": "switch_enum_string_case.ets" 3833 }, 3834 "end": { 3835 "line": 20, 3836 "column": 1, 3837 "program": "switch_enum_string_case.ets" 3838 } 3839 } 3840 }, 3841 "generator": false, 3842 "async": false, 3843 "expression": false, 3844 "params": [], 3845 "returnType": { 3846 "type": "ETSTypeReference", 3847 "part": { 3848 "type": "ETSTypeReferencePart", 3849 "name": { 3850 "type": "Identifier", 3851 "name": "String", 3852 "decorators": [], 3853 "loc": { 3854 "start": { 3855 "line": 20, 3856 "column": 1, 3857 "program": "switch_enum_string_case.ets" 3858 }, 3859 "end": { 3860 "line": 20, 3861 "column": 1, 3862 "program": "switch_enum_string_case.ets" 3863 } 3864 } 3865 }, 3866 "loc": { 3867 "start": { 3868 "line": 20, 3869 "column": 1, 3870 "program": "switch_enum_string_case.ets" 3871 }, 3872 "end": { 3873 "line": 20, 3874 "column": 1, 3875 "program": "switch_enum_string_case.ets" 3876 } 3877 } 3878 }, 3879 "loc": { 3880 "start": { 3881 "line": 20, 3882 "column": 1, 3883 "program": "switch_enum_string_case.ets" 3884 }, 3885 "end": { 3886 "line": 20, 3887 "column": 1, 3888 "program": "switch_enum_string_case.ets" 3889 } 3890 } 3891 }, 3892 "body": { 3893 "type": "BlockStatement", 3894 "statements": [ 3895 { 3896 "type": "ReturnStatement", 3897 "argument": { 3898 "type": "MemberExpression", 3899 "object": { 3900 "type": "MemberExpression", 3901 "object": { 3902 "type": "Identifier", 3903 "name": "Enum", 3904 "decorators": [], 3905 "loc": { 3906 "start": { 3907 "line": 20, 3908 "column": 6, 3909 "program": "switch_enum_string_case.ets" 3910 }, 3911 "end": { 3912 "line": 20, 3913 "column": 10, 3914 "program": "switch_enum_string_case.ets" 3915 } 3916 } 3917 }, 3918 "property": { 3919 "type": "Identifier", 3920 "name": "#StringValuesArray", 3921 "decorators": [], 3922 "loc": { 3923 "start": { 3924 "line": 20, 3925 "column": 1, 3926 "program": "switch_enum_string_case.ets" 3927 }, 3928 "end": { 3929 "line": 20, 3930 "column": 1, 3931 "program": "switch_enum_string_case.ets" 3932 } 3933 } 3934 }, 3935 "computed": false, 3936 "optional": false, 3937 "loc": { 3938 "start": { 3939 "line": 20, 3940 "column": 1, 3941 "program": "switch_enum_string_case.ets" 3942 }, 3943 "end": { 3944 "line": 20, 3945 "column": 1, 3946 "program": "switch_enum_string_case.ets" 3947 } 3948 } 3949 }, 3950 "property": { 3951 "type": "MemberExpression", 3952 "object": { 3953 "type": "ThisExpression", 3954 "loc": { 3955 "start": { 3956 "line": 20, 3957 "column": 1, 3958 "program": "switch_enum_string_case.ets" 3959 }, 3960 "end": { 3961 "line": 20, 3962 "column": 1, 3963 "program": "switch_enum_string_case.ets" 3964 } 3965 } 3966 }, 3967 "property": { 3968 "type": "Identifier", 3969 "name": "#ordinal", 3970 "decorators": [], 3971 "loc": { 3972 "start": { 3973 "line": 20, 3974 "column": 1, 3975 "program": "switch_enum_string_case.ets" 3976 }, 3977 "end": { 3978 "line": 20, 3979 "column": 1, 3980 "program": "switch_enum_string_case.ets" 3981 } 3982 } 3983 }, 3984 "computed": false, 3985 "optional": false, 3986 "loc": { 3987 "start": { 3988 "line": 20, 3989 "column": 1, 3990 "program": "switch_enum_string_case.ets" 3991 }, 3992 "end": { 3993 "line": 20, 3994 "column": 1, 3995 "program": "switch_enum_string_case.ets" 3996 } 3997 } 3998 }, 3999 "computed": true, 4000 "optional": false, 4001 "loc": { 4002 "start": { 4003 "line": 20, 4004 "column": 1, 4005 "program": "switch_enum_string_case.ets" 4006 }, 4007 "end": { 4008 "line": 20, 4009 "column": 1, 4010 "program": "switch_enum_string_case.ets" 4011 } 4012 } 4013 }, 4014 "loc": { 4015 "start": { 4016 "line": 20, 4017 "column": 1, 4018 "program": "switch_enum_string_case.ets" 4019 }, 4020 "end": { 4021 "line": 20, 4022 "column": 1, 4023 "program": "switch_enum_string_case.ets" 4024 } 4025 } 4026 } 4027 ], 4028 "loc": { 4029 "start": { 4030 "line": 20, 4031 "column": 1, 4032 "program": "switch_enum_string_case.ets" 4033 }, 4034 "end": { 4035 "line": 20, 4036 "column": 1, 4037 "program": "switch_enum_string_case.ets" 4038 } 4039 } 4040 }, 4041 "loc": { 4042 "start": { 4043 "line": 20, 4044 "column": 1, 4045 "program": "switch_enum_string_case.ets" 4046 }, 4047 "end": { 4048 "line": 20, 4049 "column": 1, 4050 "program": "switch_enum_string_case.ets" 4051 } 4052 } 4053 }, 4054 "loc": { 4055 "start": { 4056 "line": 20, 4057 "column": 1, 4058 "program": "switch_enum_string_case.ets" 4059 }, 4060 "end": { 4061 "line": 20, 4062 "column": 1, 4063 "program": "switch_enum_string_case.ets" 4064 } 4065 } 4066 }, 4067 "overloads": [], 4068 "decorators": [], 4069 "loc": { 4070 "start": { 4071 "line": 20, 4072 "column": 1, 4073 "program": "switch_enum_string_case.ets" 4074 }, 4075 "end": { 4076 "line": 20, 4077 "column": 1, 4078 "program": "switch_enum_string_case.ets" 4079 } 4080 } 4081 }, 4082 { 4083 "type": "MethodDefinition", 4084 "key": { 4085 "type": "Identifier", 4086 "name": "toString", 4087 "decorators": [], 4088 "loc": { 4089 "start": { 4090 "line": 20, 4091 "column": 1, 4092 "program": "switch_enum_string_case.ets" 4093 }, 4094 "end": { 4095 "line": 20, 4096 "column": 1, 4097 "program": "switch_enum_string_case.ets" 4098 } 4099 } 4100 }, 4101 "kind": "method", 4102 "accessibility": "public", 4103 "static": false, 4104 "optional": false, 4105 "computed": false, 4106 "value": { 4107 "type": "FunctionExpression", 4108 "function": { 4109 "type": "ScriptFunction", 4110 "id": { 4111 "type": "Identifier", 4112 "name": "toString", 4113 "decorators": [], 4114 "loc": { 4115 "start": { 4116 "line": 20, 4117 "column": 1, 4118 "program": "switch_enum_string_case.ets" 4119 }, 4120 "end": { 4121 "line": 20, 4122 "column": 1, 4123 "program": "switch_enum_string_case.ets" 4124 } 4125 } 4126 }, 4127 "generator": false, 4128 "async": false, 4129 "expression": false, 4130 "params": [], 4131 "returnType": { 4132 "type": "ETSTypeReference", 4133 "part": { 4134 "type": "ETSTypeReferencePart", 4135 "name": { 4136 "type": "Identifier", 4137 "name": "String", 4138 "decorators": [], 4139 "loc": { 4140 "start": { 4141 "line": 20, 4142 "column": 1, 4143 "program": "switch_enum_string_case.ets" 4144 }, 4145 "end": { 4146 "line": 20, 4147 "column": 1, 4148 "program": "switch_enum_string_case.ets" 4149 } 4150 } 4151 }, 4152 "loc": { 4153 "start": { 4154 "line": 20, 4155 "column": 1, 4156 "program": "switch_enum_string_case.ets" 4157 }, 4158 "end": { 4159 "line": 20, 4160 "column": 1, 4161 "program": "switch_enum_string_case.ets" 4162 } 4163 } 4164 }, 4165 "loc": { 4166 "start": { 4167 "line": 20, 4168 "column": 1, 4169 "program": "switch_enum_string_case.ets" 4170 }, 4171 "end": { 4172 "line": 20, 4173 "column": 1, 4174 "program": "switch_enum_string_case.ets" 4175 } 4176 } 4177 }, 4178 "body": { 4179 "type": "BlockStatement", 4180 "statements": [ 4181 { 4182 "type": "ReturnStatement", 4183 "argument": { 4184 "type": "MemberExpression", 4185 "object": { 4186 "type": "MemberExpression", 4187 "object": { 4188 "type": "Identifier", 4189 "name": "Enum", 4190 "decorators": [], 4191 "loc": { 4192 "start": { 4193 "line": 20, 4194 "column": 6, 4195 "program": "switch_enum_string_case.ets" 4196 }, 4197 "end": { 4198 "line": 20, 4199 "column": 10, 4200 "program": "switch_enum_string_case.ets" 4201 } 4202 } 4203 }, 4204 "property": { 4205 "type": "Identifier", 4206 "name": "#StringValuesArray", 4207 "decorators": [], 4208 "loc": { 4209 "start": { 4210 "line": 20, 4211 "column": 1, 4212 "program": "switch_enum_string_case.ets" 4213 }, 4214 "end": { 4215 "line": 20, 4216 "column": 1, 4217 "program": "switch_enum_string_case.ets" 4218 } 4219 } 4220 }, 4221 "computed": false, 4222 "optional": false, 4223 "loc": { 4224 "start": { 4225 "line": 20, 4226 "column": 1, 4227 "program": "switch_enum_string_case.ets" 4228 }, 4229 "end": { 4230 "line": 20, 4231 "column": 1, 4232 "program": "switch_enum_string_case.ets" 4233 } 4234 } 4235 }, 4236 "property": { 4237 "type": "MemberExpression", 4238 "object": { 4239 "type": "ThisExpression", 4240 "loc": { 4241 "start": { 4242 "line": 20, 4243 "column": 1, 4244 "program": "switch_enum_string_case.ets" 4245 }, 4246 "end": { 4247 "line": 20, 4248 "column": 1, 4249 "program": "switch_enum_string_case.ets" 4250 } 4251 } 4252 }, 4253 "property": { 4254 "type": "Identifier", 4255 "name": "#ordinal", 4256 "decorators": [], 4257 "loc": { 4258 "start": { 4259 "line": 20, 4260 "column": 1, 4261 "program": "switch_enum_string_case.ets" 4262 }, 4263 "end": { 4264 "line": 20, 4265 "column": 1, 4266 "program": "switch_enum_string_case.ets" 4267 } 4268 } 4269 }, 4270 "computed": false, 4271 "optional": false, 4272 "loc": { 4273 "start": { 4274 "line": 20, 4275 "column": 1, 4276 "program": "switch_enum_string_case.ets" 4277 }, 4278 "end": { 4279 "line": 20, 4280 "column": 1, 4281 "program": "switch_enum_string_case.ets" 4282 } 4283 } 4284 }, 4285 "computed": true, 4286 "optional": false, 4287 "loc": { 4288 "start": { 4289 "line": 20, 4290 "column": 1, 4291 "program": "switch_enum_string_case.ets" 4292 }, 4293 "end": { 4294 "line": 20, 4295 "column": 1, 4296 "program": "switch_enum_string_case.ets" 4297 } 4298 } 4299 }, 4300 "loc": { 4301 "start": { 4302 "line": 20, 4303 "column": 1, 4304 "program": "switch_enum_string_case.ets" 4305 }, 4306 "end": { 4307 "line": 20, 4308 "column": 1, 4309 "program": "switch_enum_string_case.ets" 4310 } 4311 } 4312 } 4313 ], 4314 "loc": { 4315 "start": { 4316 "line": 20, 4317 "column": 1, 4318 "program": "switch_enum_string_case.ets" 4319 }, 4320 "end": { 4321 "line": 20, 4322 "column": 1, 4323 "program": "switch_enum_string_case.ets" 4324 } 4325 } 4326 }, 4327 "loc": { 4328 "start": { 4329 "line": 20, 4330 "column": 1, 4331 "program": "switch_enum_string_case.ets" 4332 }, 4333 "end": { 4334 "line": 20, 4335 "column": 1, 4336 "program": "switch_enum_string_case.ets" 4337 } 4338 } 4339 }, 4340 "loc": { 4341 "start": { 4342 "line": 20, 4343 "column": 1, 4344 "program": "switch_enum_string_case.ets" 4345 }, 4346 "end": { 4347 "line": 20, 4348 "column": 1, 4349 "program": "switch_enum_string_case.ets" 4350 } 4351 } 4352 }, 4353 "overloads": [], 4354 "decorators": [], 4355 "loc": { 4356 "start": { 4357 "line": 20, 4358 "column": 1, 4359 "program": "switch_enum_string_case.ets" 4360 }, 4361 "end": { 4362 "line": 20, 4363 "column": 1, 4364 "program": "switch_enum_string_case.ets" 4365 } 4366 } 4367 }, 4368 { 4369 "type": "MethodDefinition", 4370 "key": { 4371 "type": "Identifier", 4372 "name": "values", 4373 "decorators": [], 4374 "loc": { 4375 "start": { 4376 "line": 20, 4377 "column": 1, 4378 "program": "switch_enum_string_case.ets" 4379 }, 4380 "end": { 4381 "line": 20, 4382 "column": 1, 4383 "program": "switch_enum_string_case.ets" 4384 } 4385 } 4386 }, 4387 "kind": "method", 4388 "accessibility": "public", 4389 "static": true, 4390 "optional": false, 4391 "computed": false, 4392 "value": { 4393 "type": "FunctionExpression", 4394 "function": { 4395 "type": "ScriptFunction", 4396 "id": { 4397 "type": "Identifier", 4398 "name": "values", 4399 "decorators": [], 4400 "loc": { 4401 "start": { 4402 "line": 20, 4403 "column": 1, 4404 "program": "switch_enum_string_case.ets" 4405 }, 4406 "end": { 4407 "line": 20, 4408 "column": 1, 4409 "program": "switch_enum_string_case.ets" 4410 } 4411 } 4412 }, 4413 "generator": false, 4414 "async": false, 4415 "expression": false, 4416 "params": [], 4417 "returnType": { 4418 "type": "TSArrayType", 4419 "elementType": { 4420 "type": "ETSTypeReference", 4421 "part": { 4422 "type": "ETSTypeReferencePart", 4423 "name": { 4424 "type": "Identifier", 4425 "name": "Enum", 4426 "decorators": [], 4427 "loc": { 4428 "start": { 4429 "line": 20, 4430 "column": 1, 4431 "program": "switch_enum_string_case.ets" 4432 }, 4433 "end": { 4434 "line": 20, 4435 "column": 1, 4436 "program": "switch_enum_string_case.ets" 4437 } 4438 } 4439 }, 4440 "loc": { 4441 "start": { 4442 "line": 20, 4443 "column": 1, 4444 "program": "switch_enum_string_case.ets" 4445 }, 4446 "end": { 4447 "line": 20, 4448 "column": 1, 4449 "program": "switch_enum_string_case.ets" 4450 } 4451 } 4452 }, 4453 "loc": { 4454 "start": { 4455 "line": 20, 4456 "column": 1, 4457 "program": "switch_enum_string_case.ets" 4458 }, 4459 "end": { 4460 "line": 20, 4461 "column": 1, 4462 "program": "switch_enum_string_case.ets" 4463 } 4464 } 4465 }, 4466 "annotations": [], 4467 "loc": { 4468 "start": { 4469 "line": 20, 4470 "column": 1, 4471 "program": "switch_enum_string_case.ets" 4472 }, 4473 "end": { 4474 "line": 20, 4475 "column": 1, 4476 "program": "switch_enum_string_case.ets" 4477 } 4478 } 4479 }, 4480 "body": { 4481 "type": "BlockStatement", 4482 "statements": [ 4483 { 4484 "type": "ReturnStatement", 4485 "argument": { 4486 "type": "MemberExpression", 4487 "object": { 4488 "type": "Identifier", 4489 "name": "Enum", 4490 "decorators": [], 4491 "loc": { 4492 "start": { 4493 "line": 20, 4494 "column": 6, 4495 "program": "switch_enum_string_case.ets" 4496 }, 4497 "end": { 4498 "line": 20, 4499 "column": 10, 4500 "program": "switch_enum_string_case.ets" 4501 } 4502 } 4503 }, 4504 "property": { 4505 "type": "Identifier", 4506 "name": "#ItemsArray", 4507 "decorators": [], 4508 "loc": { 4509 "start": { 4510 "line": 20, 4511 "column": 1, 4512 "program": "switch_enum_string_case.ets" 4513 }, 4514 "end": { 4515 "line": 20, 4516 "column": 1, 4517 "program": "switch_enum_string_case.ets" 4518 } 4519 } 4520 }, 4521 "computed": false, 4522 "optional": false, 4523 "loc": { 4524 "start": { 4525 "line": 20, 4526 "column": 1, 4527 "program": "switch_enum_string_case.ets" 4528 }, 4529 "end": { 4530 "line": 20, 4531 "column": 1, 4532 "program": "switch_enum_string_case.ets" 4533 } 4534 } 4535 }, 4536 "loc": { 4537 "start": { 4538 "line": 20, 4539 "column": 1, 4540 "program": "switch_enum_string_case.ets" 4541 }, 4542 "end": { 4543 "line": 20, 4544 "column": 1, 4545 "program": "switch_enum_string_case.ets" 4546 } 4547 } 4548 } 4549 ], 4550 "loc": { 4551 "start": { 4552 "line": 20, 4553 "column": 1, 4554 "program": "switch_enum_string_case.ets" 4555 }, 4556 "end": { 4557 "line": 20, 4558 "column": 1, 4559 "program": "switch_enum_string_case.ets" 4560 } 4561 } 4562 }, 4563 "loc": { 4564 "start": { 4565 "line": 20, 4566 "column": 1, 4567 "program": "switch_enum_string_case.ets" 4568 }, 4569 "end": { 4570 "line": 20, 4571 "column": 1, 4572 "program": "switch_enum_string_case.ets" 4573 } 4574 } 4575 }, 4576 "loc": { 4577 "start": { 4578 "line": 20, 4579 "column": 1, 4580 "program": "switch_enum_string_case.ets" 4581 }, 4582 "end": { 4583 "line": 20, 4584 "column": 1, 4585 "program": "switch_enum_string_case.ets" 4586 } 4587 } 4588 }, 4589 "overloads": [], 4590 "decorators": [], 4591 "loc": { 4592 "start": { 4593 "line": 20, 4594 "column": 1, 4595 "program": "switch_enum_string_case.ets" 4596 }, 4597 "end": { 4598 "line": 20, 4599 "column": 1, 4600 "program": "switch_enum_string_case.ets" 4601 } 4602 } 4603 }, 4604 { 4605 "type": "MethodDefinition", 4606 "key": { 4607 "type": "Identifier", 4608 "name": "getOrdinal", 4609 "decorators": [], 4610 "loc": { 4611 "start": { 4612 "line": 20, 4613 "column": 1, 4614 "program": "switch_enum_string_case.ets" 4615 }, 4616 "end": { 4617 "line": 20, 4618 "column": 1, 4619 "program": "switch_enum_string_case.ets" 4620 } 4621 } 4622 }, 4623 "kind": "method", 4624 "accessibility": "public", 4625 "static": false, 4626 "optional": false, 4627 "computed": false, 4628 "value": { 4629 "type": "FunctionExpression", 4630 "function": { 4631 "type": "ScriptFunction", 4632 "id": { 4633 "type": "Identifier", 4634 "name": "getOrdinal", 4635 "decorators": [], 4636 "loc": { 4637 "start": { 4638 "line": 20, 4639 "column": 1, 4640 "program": "switch_enum_string_case.ets" 4641 }, 4642 "end": { 4643 "line": 20, 4644 "column": 1, 4645 "program": "switch_enum_string_case.ets" 4646 } 4647 } 4648 }, 4649 "generator": false, 4650 "async": false, 4651 "expression": false, 4652 "params": [], 4653 "returnType": { 4654 "type": "ETSPrimitiveType", 4655 "loc": { 4656 "start": { 4657 "line": 20, 4658 "column": 1, 4659 "program": "switch_enum_string_case.ets" 4660 }, 4661 "end": { 4662 "line": 20, 4663 "column": 1, 4664 "program": "switch_enum_string_case.ets" 4665 } 4666 } 4667 }, 4668 "body": { 4669 "type": "BlockStatement", 4670 "statements": [ 4671 { 4672 "type": "ReturnStatement", 4673 "argument": { 4674 "type": "MemberExpression", 4675 "object": { 4676 "type": "ThisExpression", 4677 "loc": { 4678 "start": { 4679 "line": 20, 4680 "column": 1, 4681 "program": "switch_enum_string_case.ets" 4682 }, 4683 "end": { 4684 "line": 20, 4685 "column": 1, 4686 "program": "switch_enum_string_case.ets" 4687 } 4688 } 4689 }, 4690 "property": { 4691 "type": "Identifier", 4692 "name": "#ordinal", 4693 "decorators": [], 4694 "loc": { 4695 "start": { 4696 "line": 20, 4697 "column": 1, 4698 "program": "switch_enum_string_case.ets" 4699 }, 4700 "end": { 4701 "line": 20, 4702 "column": 1, 4703 "program": "switch_enum_string_case.ets" 4704 } 4705 } 4706 }, 4707 "computed": false, 4708 "optional": false, 4709 "loc": { 4710 "start": { 4711 "line": 20, 4712 "column": 1, 4713 "program": "switch_enum_string_case.ets" 4714 }, 4715 "end": { 4716 "line": 20, 4717 "column": 1, 4718 "program": "switch_enum_string_case.ets" 4719 } 4720 } 4721 }, 4722 "loc": { 4723 "start": { 4724 "line": 20, 4725 "column": 1, 4726 "program": "switch_enum_string_case.ets" 4727 }, 4728 "end": { 4729 "line": 20, 4730 "column": 1, 4731 "program": "switch_enum_string_case.ets" 4732 } 4733 } 4734 } 4735 ], 4736 "loc": { 4737 "start": { 4738 "line": 20, 4739 "column": 1, 4740 "program": "switch_enum_string_case.ets" 4741 }, 4742 "end": { 4743 "line": 20, 4744 "column": 1, 4745 "program": "switch_enum_string_case.ets" 4746 } 4747 } 4748 }, 4749 "loc": { 4750 "start": { 4751 "line": 20, 4752 "column": 1, 4753 "program": "switch_enum_string_case.ets" 4754 }, 4755 "end": { 4756 "line": 20, 4757 "column": 1, 4758 "program": "switch_enum_string_case.ets" 4759 } 4760 } 4761 }, 4762 "loc": { 4763 "start": { 4764 "line": 20, 4765 "column": 1, 4766 "program": "switch_enum_string_case.ets" 4767 }, 4768 "end": { 4769 "line": 20, 4770 "column": 1, 4771 "program": "switch_enum_string_case.ets" 4772 } 4773 } 4774 }, 4775 "overloads": [], 4776 "decorators": [], 4777 "loc": { 4778 "start": { 4779 "line": 20, 4780 "column": 1, 4781 "program": "switch_enum_string_case.ets" 4782 }, 4783 "end": { 4784 "line": 20, 4785 "column": 1, 4786 "program": "switch_enum_string_case.ets" 4787 } 4788 } 4789 }, 4790 { 4791 "type": "MethodDefinition", 4792 "key": { 4793 "type": "Identifier", 4794 "name": "$_get", 4795 "decorators": [], 4796 "loc": { 4797 "start": { 4798 "line": 20, 4799 "column": 1, 4800 "program": "switch_enum_string_case.ets" 4801 }, 4802 "end": { 4803 "line": 20, 4804 "column": 1, 4805 "program": "switch_enum_string_case.ets" 4806 } 4807 } 4808 }, 4809 "kind": "method", 4810 "accessibility": "public", 4811 "static": true, 4812 "optional": false, 4813 "computed": false, 4814 "value": { 4815 "type": "FunctionExpression", 4816 "function": { 4817 "type": "ScriptFunction", 4818 "id": { 4819 "type": "Identifier", 4820 "name": "$_get", 4821 "decorators": [], 4822 "loc": { 4823 "start": { 4824 "line": 20, 4825 "column": 1, 4826 "program": "switch_enum_string_case.ets" 4827 }, 4828 "end": { 4829 "line": 20, 4830 "column": 1, 4831 "program": "switch_enum_string_case.ets" 4832 } 4833 } 4834 }, 4835 "generator": false, 4836 "async": false, 4837 "expression": false, 4838 "params": [ 4839 { 4840 "type": "ETSParameterExpression", 4841 "name": { 4842 "type": "Identifier", 4843 "name": "e", 4844 "typeAnnotation": { 4845 "type": "ETSTypeReference", 4846 "part": { 4847 "type": "ETSTypeReferencePart", 4848 "name": { 4849 "type": "Identifier", 4850 "name": "Enum", 4851 "decorators": [], 4852 "loc": { 4853 "start": { 4854 "line": 20, 4855 "column": 1, 4856 "program": "switch_enum_string_case.ets" 4857 }, 4858 "end": { 4859 "line": 20, 4860 "column": 1, 4861 "program": "switch_enum_string_case.ets" 4862 } 4863 } 4864 }, 4865 "loc": { 4866 "start": { 4867 "line": 20, 4868 "column": 1, 4869 "program": "switch_enum_string_case.ets" 4870 }, 4871 "end": { 4872 "line": 20, 4873 "column": 1, 4874 "program": "switch_enum_string_case.ets" 4875 } 4876 } 4877 }, 4878 "loc": { 4879 "start": { 4880 "line": 20, 4881 "column": 1, 4882 "program": "switch_enum_string_case.ets" 4883 }, 4884 "end": { 4885 "line": 20, 4886 "column": 1, 4887 "program": "switch_enum_string_case.ets" 4888 } 4889 } 4890 }, 4891 "decorators": [], 4892 "loc": { 4893 "start": { 4894 "line": 20, 4895 "column": 1, 4896 "program": "switch_enum_string_case.ets" 4897 }, 4898 "end": { 4899 "line": 20, 4900 "column": 1, 4901 "program": "switch_enum_string_case.ets" 4902 } 4903 } 4904 }, 4905 "loc": { 4906 "start": { 4907 "line": 20, 4908 "column": 1, 4909 "program": "switch_enum_string_case.ets" 4910 }, 4911 "end": { 4912 "line": 20, 4913 "column": 1, 4914 "program": "switch_enum_string_case.ets" 4915 } 4916 } 4917 } 4918 ], 4919 "returnType": { 4920 "type": "ETSTypeReference", 4921 "part": { 4922 "type": "ETSTypeReferencePart", 4923 "name": { 4924 "type": "Identifier", 4925 "name": "String", 4926 "decorators": [], 4927 "loc": { 4928 "start": { 4929 "line": 20, 4930 "column": 1, 4931 "program": "switch_enum_string_case.ets" 4932 }, 4933 "end": { 4934 "line": 20, 4935 "column": 1, 4936 "program": "switch_enum_string_case.ets" 4937 } 4938 } 4939 }, 4940 "loc": { 4941 "start": { 4942 "line": 20, 4943 "column": 1, 4944 "program": "switch_enum_string_case.ets" 4945 }, 4946 "end": { 4947 "line": 20, 4948 "column": 1, 4949 "program": "switch_enum_string_case.ets" 4950 } 4951 } 4952 }, 4953 "loc": { 4954 "start": { 4955 "line": 20, 4956 "column": 1, 4957 "program": "switch_enum_string_case.ets" 4958 }, 4959 "end": { 4960 "line": 20, 4961 "column": 1, 4962 "program": "switch_enum_string_case.ets" 4963 } 4964 } 4965 }, 4966 "body": { 4967 "type": "BlockStatement", 4968 "statements": [ 4969 { 4970 "type": "ReturnStatement", 4971 "argument": { 4972 "type": "CallExpression", 4973 "callee": { 4974 "type": "MemberExpression", 4975 "object": { 4976 "type": "Identifier", 4977 "name": "e", 4978 "decorators": [], 4979 "loc": { 4980 "start": { 4981 "line": 20, 4982 "column": 1, 4983 "program": "switch_enum_string_case.ets" 4984 }, 4985 "end": { 4986 "line": 20, 4987 "column": 1, 4988 "program": "switch_enum_string_case.ets" 4989 } 4990 } 4991 }, 4992 "property": { 4993 "type": "Identifier", 4994 "name": "getName", 4995 "decorators": [], 4996 "loc": { 4997 "start": { 4998 "line": 20, 4999 "column": 1, 5000 "program": "switch_enum_string_case.ets" 5001 }, 5002 "end": { 5003 "line": 20, 5004 "column": 1, 5005 "program": "switch_enum_string_case.ets" 5006 } 5007 } 5008 }, 5009 "computed": false, 5010 "optional": false, 5011 "loc": { 5012 "start": { 5013 "line": 20, 5014 "column": 1, 5015 "program": "switch_enum_string_case.ets" 5016 }, 5017 "end": { 5018 "line": 20, 5019 "column": 1, 5020 "program": "switch_enum_string_case.ets" 5021 } 5022 } 5023 }, 5024 "arguments": [], 5025 "optional": false, 5026 "loc": { 5027 "start": { 5028 "line": 20, 5029 "column": 1, 5030 "program": "switch_enum_string_case.ets" 5031 }, 5032 "end": { 5033 "line": 20, 5034 "column": 1, 5035 "program": "switch_enum_string_case.ets" 5036 } 5037 } 5038 }, 5039 "loc": { 5040 "start": { 5041 "line": 20, 5042 "column": 1, 5043 "program": "switch_enum_string_case.ets" 5044 }, 5045 "end": { 5046 "line": 20, 5047 "column": 1, 5048 "program": "switch_enum_string_case.ets" 5049 } 5050 } 5051 } 5052 ], 5053 "loc": { 5054 "start": { 5055 "line": 20, 5056 "column": 1, 5057 "program": "switch_enum_string_case.ets" 5058 }, 5059 "end": { 5060 "line": 20, 5061 "column": 1, 5062 "program": "switch_enum_string_case.ets" 5063 } 5064 } 5065 }, 5066 "loc": { 5067 "start": { 5068 "line": 20, 5069 "column": 1, 5070 "program": "switch_enum_string_case.ets" 5071 }, 5072 "end": { 5073 "line": 20, 5074 "column": 1, 5075 "program": "switch_enum_string_case.ets" 5076 } 5077 } 5078 }, 5079 "loc": { 5080 "start": { 5081 "line": 20, 5082 "column": 1, 5083 "program": "switch_enum_string_case.ets" 5084 }, 5085 "end": { 5086 "line": 20, 5087 "column": 1, 5088 "program": "switch_enum_string_case.ets" 5089 } 5090 } 5091 }, 5092 "overloads": [], 5093 "decorators": [], 5094 "loc": { 5095 "start": { 5096 "line": 20, 5097 "column": 1, 5098 "program": "switch_enum_string_case.ets" 5099 }, 5100 "end": { 5101 "line": 20, 5102 "column": 1, 5103 "program": "switch_enum_string_case.ets" 5104 } 5105 } 5106 } 5107 ], 5108 "loc": { 5109 "start": { 5110 "line": 20, 5111 "column": 1, 5112 "program": "switch_enum_string_case.ets" 5113 }, 5114 "end": { 5115 "line": 20, 5116 "column": 1, 5117 "program": "switch_enum_string_case.ets" 5118 } 5119 } 5120 }, 5121 "loc": { 5122 "start": { 5123 "line": 1, 5124 "column": 1, 5125 "program": null 5126 }, 5127 "end": { 5128 "line": 1, 5129 "column": 1, 5130 "program": null 5131 } 5132 } 5133 }, 5134 { 5135 "type": "ClassDeclaration", 5136 "definition": { 5137 "id": { 5138 "type": "Identifier", 5139 "name": "ETSGLOBAL", 5140 "decorators": [], 5141 "loc": { 5142 "start": { 5143 "line": 1, 5144 "column": 1, 5145 "program": "switch_enum_string_case.ets" 5146 }, 5147 "end": { 5148 "line": 1, 5149 "column": 1, 5150 "program": "switch_enum_string_case.ets" 5151 } 5152 } 5153 }, 5154 "superClass": null, 5155 "implements": [], 5156 "body": [ 5157 { 5158 "type": "MethodDefinition", 5159 "key": { 5160 "type": "Identifier", 5161 "name": "_$init$_", 5162 "decorators": [], 5163 "loc": { 5164 "start": { 5165 "line": 1, 5166 "column": 1, 5167 "program": null 5168 }, 5169 "end": { 5170 "line": 1, 5171 "column": 1, 5172 "program": null 5173 } 5174 } 5175 }, 5176 "kind": "method", 5177 "accessibility": "public", 5178 "static": true, 5179 "optional": false, 5180 "computed": false, 5181 "value": { 5182 "type": "FunctionExpression", 5183 "function": { 5184 "type": "ScriptFunction", 5185 "id": { 5186 "type": "Identifier", 5187 "name": "_$init$_", 5188 "decorators": [], 5189 "loc": { 5190 "start": { 5191 "line": 1, 5192 "column": 1, 5193 "program": null 5194 }, 5195 "end": { 5196 "line": 1, 5197 "column": 1, 5198 "program": null 5199 } 5200 } 5201 }, 5202 "generator": false, 5203 "async": false, 5204 "expression": false, 5205 "params": [], 5206 "body": { 5207 "type": "BlockStatement", 5208 "statements": [], 5209 "loc": { 5210 "start": { 5211 "line": 1, 5212 "column": 1, 5213 "program": null 5214 }, 5215 "end": { 5216 "line": 1, 5217 "column": 1, 5218 "program": null 5219 } 5220 } 5221 }, 5222 "loc": { 5223 "start": { 5224 "line": 1, 5225 "column": 1, 5226 "program": null 5227 }, 5228 "end": { 5229 "line": 1, 5230 "column": 1, 5231 "program": null 5232 } 5233 } 5234 }, 5235 "loc": { 5236 "start": { 5237 "line": 1, 5238 "column": 1, 5239 "program": null 5240 }, 5241 "end": { 5242 "line": 1, 5243 "column": 1, 5244 "program": null 5245 } 5246 } 5247 }, 5248 "overloads": [], 5249 "decorators": [], 5250 "loc": { 5251 "start": { 5252 "line": 1, 5253 "column": 1, 5254 "program": "switch_enum_string_case.ets" 5255 }, 5256 "end": { 5257 "line": 1, 5258 "column": 1, 5259 "program": "switch_enum_string_case.ets" 5260 } 5261 } 5262 }, 5263 { 5264 "type": "MethodDefinition", 5265 "key": { 5266 "type": "Identifier", 5267 "name": "main", 5268 "decorators": [], 5269 "loc": { 5270 "start": { 5271 "line": 22, 5272 "column": 10, 5273 "program": "switch_enum_string_case.ets" 5274 }, 5275 "end": { 5276 "line": 22, 5277 "column": 14, 5278 "program": "switch_enum_string_case.ets" 5279 } 5280 } 5281 }, 5282 "kind": "method", 5283 "accessibility": "public", 5284 "static": true, 5285 "optional": false, 5286 "computed": false, 5287 "value": { 5288 "type": "FunctionExpression", 5289 "function": { 5290 "type": "ScriptFunction", 5291 "id": { 5292 "type": "Identifier", 5293 "name": "main", 5294 "decorators": [], 5295 "loc": { 5296 "start": { 5297 "line": 22, 5298 "column": 10, 5299 "program": "switch_enum_string_case.ets" 5300 }, 5301 "end": { 5302 "line": 22, 5303 "column": 14, 5304 "program": "switch_enum_string_case.ets" 5305 } 5306 } 5307 }, 5308 "generator": false, 5309 "async": false, 5310 "expression": false, 5311 "params": [], 5312 "body": { 5313 "type": "BlockStatement", 5314 "statements": [ 5315 { 5316 "type": "VariableDeclaration", 5317 "declarations": [ 5318 { 5319 "type": "VariableDeclarator", 5320 "id": { 5321 "type": "Identifier", 5322 "name": "v", 5323 "decorators": [], 5324 "loc": { 5325 "start": { 5326 "line": 23, 5327 "column": 7, 5328 "program": "switch_enum_string_case.ets" 5329 }, 5330 "end": { 5331 "line": 23, 5332 "column": 8, 5333 "program": "switch_enum_string_case.ets" 5334 } 5335 } 5336 }, 5337 "init": { 5338 "type": "MemberExpression", 5339 "object": { 5340 "type": "Identifier", 5341 "name": "Enum", 5342 "decorators": [], 5343 "loc": { 5344 "start": { 5345 "line": 23, 5346 "column": 11, 5347 "program": "switch_enum_string_case.ets" 5348 }, 5349 "end": { 5350 "line": 23, 5351 "column": 15, 5352 "program": "switch_enum_string_case.ets" 5353 } 5354 } 5355 }, 5356 "property": { 5357 "type": "Identifier", 5358 "name": "e3", 5359 "decorators": [], 5360 "loc": { 5361 "start": { 5362 "line": 23, 5363 "column": 16, 5364 "program": "switch_enum_string_case.ets" 5365 }, 5366 "end": { 5367 "line": 23, 5368 "column": 18, 5369 "program": "switch_enum_string_case.ets" 5370 } 5371 } 5372 }, 5373 "computed": false, 5374 "optional": false, 5375 "loc": { 5376 "start": { 5377 "line": 23, 5378 "column": 11, 5379 "program": "switch_enum_string_case.ets" 5380 }, 5381 "end": { 5382 "line": 23, 5383 "column": 18, 5384 "program": "switch_enum_string_case.ets" 5385 } 5386 } 5387 }, 5388 "loc": { 5389 "start": { 5390 "line": 23, 5391 "column": 7, 5392 "program": "switch_enum_string_case.ets" 5393 }, 5394 "end": { 5395 "line": 23, 5396 "column": 18, 5397 "program": "switch_enum_string_case.ets" 5398 } 5399 } 5400 } 5401 ], 5402 "kind": "let", 5403 "loc": { 5404 "start": { 5405 "line": 23, 5406 "column": 3, 5407 "program": "switch_enum_string_case.ets" 5408 }, 5409 "end": { 5410 "line": 23, 5411 "column": 18, 5412 "program": "switch_enum_string_case.ets" 5413 } 5414 } 5415 }, 5416 { 5417 "type": "SwitchStatement", 5418 "discriminant": { 5419 "type": "Identifier", 5420 "name": "v", 5421 "decorators": [], 5422 "loc": { 5423 "start": { 5424 "line": 24, 5425 "column": 11, 5426 "program": "switch_enum_string_case.ets" 5427 }, 5428 "end": { 5429 "line": 24, 5430 "column": 12, 5431 "program": "switch_enum_string_case.ets" 5432 } 5433 } 5434 }, 5435 "cases": [ 5436 { 5437 "type": "SwitchCase", 5438 "test": { 5439 "type": "MemberExpression", 5440 "object": { 5441 "type": "Identifier", 5442 "name": "Enum", 5443 "decorators": [], 5444 "loc": { 5445 "start": { 5446 "line": 25, 5447 "column": 10, 5448 "program": "switch_enum_string_case.ets" 5449 }, 5450 "end": { 5451 "line": 25, 5452 "column": 14, 5453 "program": "switch_enum_string_case.ets" 5454 } 5455 } 5456 }, 5457 "property": { 5458 "type": "Identifier", 5459 "name": "e2", 5460 "decorators": [], 5461 "loc": { 5462 "start": { 5463 "line": 25, 5464 "column": 15, 5465 "program": "switch_enum_string_case.ets" 5466 }, 5467 "end": { 5468 "line": 25, 5469 "column": 17, 5470 "program": "switch_enum_string_case.ets" 5471 } 5472 } 5473 }, 5474 "computed": false, 5475 "optional": false, 5476 "loc": { 5477 "start": { 5478 "line": 25, 5479 "column": 10, 5480 "program": "switch_enum_string_case.ets" 5481 }, 5482 "end": { 5483 "line": 25, 5484 "column": 17, 5485 "program": "switch_enum_string_case.ets" 5486 } 5487 } 5488 }, 5489 "consequent": [ 5490 { 5491 "type": "ExpressionStatement", 5492 "expression": { 5493 "type": "CallExpression", 5494 "callee": { 5495 "type": "Identifier", 5496 "name": "assertTrue", 5497 "decorators": [], 5498 "loc": { 5499 "start": { 5500 "line": 25, 5501 "column": 19, 5502 "program": "switch_enum_string_case.ets" 5503 }, 5504 "end": { 5505 "line": 25, 5506 "column": 29, 5507 "program": "switch_enum_string_case.ets" 5508 } 5509 } 5510 }, 5511 "arguments": [ 5512 { 5513 "type": "BooleanLiteral", 5514 "value": false, 5515 "loc": { 5516 "start": { 5517 "line": 25, 5518 "column": 30, 5519 "program": "switch_enum_string_case.ets" 5520 }, 5521 "end": { 5522 "line": 25, 5523 "column": 35, 5524 "program": "switch_enum_string_case.ets" 5525 } 5526 } 5527 } 5528 ], 5529 "optional": false, 5530 "loc": { 5531 "start": { 5532 "line": 25, 5533 "column": 19, 5534 "program": "switch_enum_string_case.ets" 5535 }, 5536 "end": { 5537 "line": 25, 5538 "column": 36, 5539 "program": "switch_enum_string_case.ets" 5540 } 5541 } 5542 }, 5543 "loc": { 5544 "start": { 5545 "line": 25, 5546 "column": 19, 5547 "program": "switch_enum_string_case.ets" 5548 }, 5549 "end": { 5550 "line": 25, 5551 "column": 37, 5552 "program": "switch_enum_string_case.ets" 5553 } 5554 } 5555 }, 5556 { 5557 "type": "BreakStatement", 5558 "label": null, 5559 "loc": { 5560 "start": { 5561 "line": 25, 5562 "column": 38, 5563 "program": "switch_enum_string_case.ets" 5564 }, 5565 "end": { 5566 "line": 25, 5567 "column": 44, 5568 "program": "switch_enum_string_case.ets" 5569 } 5570 } 5571 } 5572 ], 5573 "loc": { 5574 "start": { 5575 "line": 25, 5576 "column": 5, 5577 "program": "switch_enum_string_case.ets" 5578 }, 5579 "end": { 5580 "line": 25, 5581 "column": 44, 5582 "program": "switch_enum_string_case.ets" 5583 } 5584 } 5585 }, 5586 { 5587 "type": "SwitchCase", 5588 "test": { 5589 "type": "MemberExpression", 5590 "object": { 5591 "type": "Identifier", 5592 "name": "Enum", 5593 "decorators": [], 5594 "loc": { 5595 "start": { 5596 "line": 26, 5597 "column": 10, 5598 "program": "switch_enum_string_case.ets" 5599 }, 5600 "end": { 5601 "line": 26, 5602 "column": 14, 5603 "program": "switch_enum_string_case.ets" 5604 } 5605 } 5606 }, 5607 "property": { 5608 "type": "Identifier", 5609 "name": "e1", 5610 "decorators": [], 5611 "loc": { 5612 "start": { 5613 "line": 26, 5614 "column": 15, 5615 "program": "switch_enum_string_case.ets" 5616 }, 5617 "end": { 5618 "line": 26, 5619 "column": 17, 5620 "program": "switch_enum_string_case.ets" 5621 } 5622 } 5623 }, 5624 "computed": false, 5625 "optional": false, 5626 "loc": { 5627 "start": { 5628 "line": 26, 5629 "column": 10, 5630 "program": "switch_enum_string_case.ets" 5631 }, 5632 "end": { 5633 "line": 26, 5634 "column": 17, 5635 "program": "switch_enum_string_case.ets" 5636 } 5637 } 5638 }, 5639 "consequent": [ 5640 { 5641 "type": "ExpressionStatement", 5642 "expression": { 5643 "type": "CallExpression", 5644 "callee": { 5645 "type": "Identifier", 5646 "name": "assertTrue", 5647 "decorators": [], 5648 "loc": { 5649 "start": { 5650 "line": 26, 5651 "column": 19, 5652 "program": "switch_enum_string_case.ets" 5653 }, 5654 "end": { 5655 "line": 26, 5656 "column": 29, 5657 "program": "switch_enum_string_case.ets" 5658 } 5659 } 5660 }, 5661 "arguments": [ 5662 { 5663 "type": "BooleanLiteral", 5664 "value": false, 5665 "loc": { 5666 "start": { 5667 "line": 26, 5668 "column": 30, 5669 "program": "switch_enum_string_case.ets" 5670 }, 5671 "end": { 5672 "line": 26, 5673 "column": 35, 5674 "program": "switch_enum_string_case.ets" 5675 } 5676 } 5677 } 5678 ], 5679 "optional": false, 5680 "loc": { 5681 "start": { 5682 "line": 26, 5683 "column": 19, 5684 "program": "switch_enum_string_case.ets" 5685 }, 5686 "end": { 5687 "line": 26, 5688 "column": 36, 5689 "program": "switch_enum_string_case.ets" 5690 } 5691 } 5692 }, 5693 "loc": { 5694 "start": { 5695 "line": 26, 5696 "column": 19, 5697 "program": "switch_enum_string_case.ets" 5698 }, 5699 "end": { 5700 "line": 26, 5701 "column": 37, 5702 "program": "switch_enum_string_case.ets" 5703 } 5704 } 5705 }, 5706 { 5707 "type": "BreakStatement", 5708 "label": null, 5709 "loc": { 5710 "start": { 5711 "line": 26, 5712 "column": 38, 5713 "program": "switch_enum_string_case.ets" 5714 }, 5715 "end": { 5716 "line": 26, 5717 "column": 44, 5718 "program": "switch_enum_string_case.ets" 5719 } 5720 } 5721 } 5722 ], 5723 "loc": { 5724 "start": { 5725 "line": 26, 5726 "column": 5, 5727 "program": "switch_enum_string_case.ets" 5728 }, 5729 "end": { 5730 "line": 26, 5731 "column": 44, 5732 "program": "switch_enum_string_case.ets" 5733 } 5734 } 5735 }, 5736 { 5737 "type": "SwitchCase", 5738 "test": { 5739 "type": "MemberExpression", 5740 "object": { 5741 "type": "Identifier", 5742 "name": "Enum", 5743 "decorators": [], 5744 "loc": { 5745 "start": { 5746 "line": 27, 5747 "column": 10, 5748 "program": "switch_enum_string_case.ets" 5749 }, 5750 "end": { 5751 "line": 27, 5752 "column": 14, 5753 "program": "switch_enum_string_case.ets" 5754 } 5755 } 5756 }, 5757 "property": { 5758 "type": "Identifier", 5759 "name": "e3", 5760 "decorators": [], 5761 "loc": { 5762 "start": { 5763 "line": 27, 5764 "column": 15, 5765 "program": "switch_enum_string_case.ets" 5766 }, 5767 "end": { 5768 "line": 27, 5769 "column": 17, 5770 "program": "switch_enum_string_case.ets" 5771 } 5772 } 5773 }, 5774 "computed": false, 5775 "optional": false, 5776 "loc": { 5777 "start": { 5778 "line": 27, 5779 "column": 10, 5780 "program": "switch_enum_string_case.ets" 5781 }, 5782 "end": { 5783 "line": 27, 5784 "column": 17, 5785 "program": "switch_enum_string_case.ets" 5786 } 5787 } 5788 }, 5789 "consequent": [ 5790 { 5791 "type": "BreakStatement", 5792 "label": null, 5793 "loc": { 5794 "start": { 5795 "line": 27, 5796 "column": 20, 5797 "program": "switch_enum_string_case.ets" 5798 }, 5799 "end": { 5800 "line": 27, 5801 "column": 26, 5802 "program": "switch_enum_string_case.ets" 5803 } 5804 } 5805 } 5806 ], 5807 "loc": { 5808 "start": { 5809 "line": 27, 5810 "column": 5, 5811 "program": "switch_enum_string_case.ets" 5812 }, 5813 "end": { 5814 "line": 27, 5815 "column": 26, 5816 "program": "switch_enum_string_case.ets" 5817 } 5818 } 5819 } 5820 ], 5821 "loc": { 5822 "start": { 5823 "line": 24, 5824 "column": 3, 5825 "program": "switch_enum_string_case.ets" 5826 }, 5827 "end": { 5828 "line": 28, 5829 "column": 4, 5830 "program": "switch_enum_string_case.ets" 5831 } 5832 } 5833 } 5834 ], 5835 "loc": { 5836 "start": { 5837 "line": 22, 5838 "column": 17, 5839 "program": "switch_enum_string_case.ets" 5840 }, 5841 "end": { 5842 "line": 29, 5843 "column": 2, 5844 "program": "switch_enum_string_case.ets" 5845 } 5846 } 5847 }, 5848 "loc": { 5849 "start": { 5850 "line": 22, 5851 "column": 10, 5852 "program": "switch_enum_string_case.ets" 5853 }, 5854 "end": { 5855 "line": 29, 5856 "column": 2, 5857 "program": "switch_enum_string_case.ets" 5858 } 5859 } 5860 }, 5861 "loc": { 5862 "start": { 5863 "line": 22, 5864 "column": 10, 5865 "program": "switch_enum_string_case.ets" 5866 }, 5867 "end": { 5868 "line": 29, 5869 "column": 2, 5870 "program": "switch_enum_string_case.ets" 5871 } 5872 } 5873 }, 5874 "overloads": [], 5875 "decorators": [], 5876 "loc": { 5877 "start": { 5878 "line": 22, 5879 "column": 1, 5880 "program": "switch_enum_string_case.ets" 5881 }, 5882 "end": { 5883 "line": 29, 5884 "column": 2, 5885 "program": "switch_enum_string_case.ets" 5886 } 5887 } 5888 } 5889 ], 5890 "loc": { 5891 "start": { 5892 "line": 1, 5893 "column": 1, 5894 "program": "switch_enum_string_case.ets" 5895 }, 5896 "end": { 5897 "line": 1, 5898 "column": 1, 5899 "program": "switch_enum_string_case.ets" 5900 } 5901 } 5902 }, 5903 "loc": { 5904 "start": { 5905 "line": 1, 5906 "column": 1, 5907 "program": "switch_enum_string_case.ets" 5908 }, 5909 "end": { 5910 "line": 1, 5911 "column": 1, 5912 "program": "switch_enum_string_case.ets" 5913 } 5914 } 5915 } 5916 ], 5917 "loc": { 5918 "start": { 5919 "line": 1, 5920 "column": 1, 5921 "program": "switch_enum_string_case.ets" 5922 }, 5923 "end": { 5924 "line": 30, 5925 "column": 1, 5926 "program": "switch_enum_string_case.ets" 5927 } 5928 } 5929} 5930