1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "IfStatement", 6 "test": { 7 "type": "UnaryExpression", 8 "operator": "!", 9 "prefix": true, 10 "argument": { 11 "type": "NumberLiteral", 12 "value": 1, 13 "loc": { 14 "start": { 15 "line": 17, 16 "column": 5, 17 "program": "test-if.js" 18 }, 19 "end": { 20 "line": 17, 21 "column": 8, 22 "program": "test-if.js" 23 } 24 } 25 }, 26 "loc": { 27 "start": { 28 "line": 17, 29 "column": 4, 30 "program": "test-if.js" 31 }, 32 "end": { 33 "line": 17, 34 "column": 8, 35 "program": "test-if.js" 36 } 37 } 38 }, 39 "consequent": { 40 "type": "ExpressionStatement", 41 "expression": { 42 "type": "AssignmentExpression", 43 "operator": "=", 44 "left": { 45 "type": "Identifier", 46 "name": "alma", 47 "decorators": [], 48 "loc": { 49 "start": { 50 "line": 18, 51 "column": 2, 52 "program": "test-if.js" 53 }, 54 "end": { 55 "line": 18, 56 "column": 6, 57 "program": "test-if.js" 58 } 59 } 60 }, 61 "right": { 62 "type": "NumberLiteral", 63 "value": 0, 64 "loc": { 65 "start": { 66 "line": 18, 67 "column": 9, 68 "program": "test-if.js" 69 }, 70 "end": { 71 "line": 18, 72 "column": 10, 73 "program": "test-if.js" 74 } 75 } 76 }, 77 "loc": { 78 "start": { 79 "line": 18, 80 "column": 2, 81 "program": "test-if.js" 82 }, 83 "end": { 84 "line": 18, 85 "column": 10, 86 "program": "test-if.js" 87 } 88 } 89 }, 90 "loc": { 91 "start": { 92 "line": 18, 93 "column": 2, 94 "program": "test-if.js" 95 }, 96 "end": { 97 "line": 18, 98 "column": 10, 99 "program": "test-if.js" 100 } 101 } 102 }, 103 "alternate": null, 104 "loc": { 105 "start": { 106 "line": 17, 107 "column": 1, 108 "program": "test-if.js" 109 }, 110 "end": { 111 "line": 18, 112 "column": 10, 113 "program": "test-if.js" 114 } 115 } 116 }, 117 { 118 "type": "IfStatement", 119 "test": { 120 "type": "NumberLiteral", 121 "value": 1, 122 "loc": { 123 "start": { 124 "line": 20, 125 "column": 4, 126 "program": "test-if.js" 127 }, 128 "end": { 129 "line": 20, 130 "column": 5, 131 "program": "test-if.js" 132 } 133 } 134 }, 135 "consequent": { 136 "type": "ExpressionStatement", 137 "expression": { 138 "type": "AssignmentExpression", 139 "operator": "=", 140 "left": { 141 "type": "Identifier", 142 "name": "fa", 143 "decorators": [], 144 "loc": { 145 "start": { 146 "line": 20, 147 "column": 7, 148 "program": "test-if.js" 149 }, 150 "end": { 151 "line": 20, 152 "column": 9, 153 "program": "test-if.js" 154 } 155 } 156 }, 157 "right": { 158 "type": "NumberLiteral", 159 "value": 1, 160 "loc": { 161 "start": { 162 "line": 20, 163 "column": 12, 164 "program": "test-if.js" 165 }, 166 "end": { 167 "line": 20, 168 "column": 13, 169 "program": "test-if.js" 170 } 171 } 172 }, 173 "loc": { 174 "start": { 175 "line": 20, 176 "column": 7, 177 "program": "test-if.js" 178 }, 179 "end": { 180 "line": 20, 181 "column": 13, 182 "program": "test-if.js" 183 } 184 } 185 }, 186 "loc": { 187 "start": { 188 "line": 20, 189 "column": 7, 190 "program": "test-if.js" 191 }, 192 "end": { 193 "line": 20, 194 "column": 13, 195 "program": "test-if.js" 196 } 197 } 198 }, 199 "alternate": null, 200 "loc": { 201 "start": { 202 "line": 20, 203 "column": 1, 204 "program": "test-if.js" 205 }, 206 "end": { 207 "line": 20, 208 "column": 13, 209 "program": "test-if.js" 210 } 211 } 212 }, 213 { 214 "type": "IfStatement", 215 "test": { 216 "type": "NumberLiteral", 217 "value": 0, 218 "loc": { 219 "start": { 220 "line": 22, 221 "column": 4, 222 "program": "test-if.js" 223 }, 224 "end": { 225 "line": 22, 226 "column": 5, 227 "program": "test-if.js" 228 } 229 } 230 }, 231 "consequent": { 232 "type": "ExpressionStatement", 233 "expression": { 234 "type": "AssignmentExpression", 235 "operator": "=", 236 "left": { 237 "type": "Identifier", 238 "name": "alma", 239 "decorators": [], 240 "loc": { 241 "start": { 242 "line": 22, 243 "column": 7, 244 "program": "test-if.js" 245 }, 246 "end": { 247 "line": 22, 248 "column": 11, 249 "program": "test-if.js" 250 } 251 } 252 }, 253 "right": { 254 "type": "NumberLiteral", 255 "value": 0, 256 "loc": { 257 "start": { 258 "line": 22, 259 "column": 14, 260 "program": "test-if.js" 261 }, 262 "end": { 263 "line": 22, 264 "column": 15, 265 "program": "test-if.js" 266 } 267 } 268 }, 269 "loc": { 270 "start": { 271 "line": 22, 272 "column": 7, 273 "program": "test-if.js" 274 }, 275 "end": { 276 "line": 22, 277 "column": 15, 278 "program": "test-if.js" 279 } 280 } 281 }, 282 "loc": { 283 "start": { 284 "line": 22, 285 "column": 7, 286 "program": "test-if.js" 287 }, 288 "end": { 289 "line": 22, 290 "column": 16, 291 "program": "test-if.js" 292 } 293 } 294 }, 295 "alternate": { 296 "type": "ExpressionStatement", 297 "expression": { 298 "type": "AssignmentExpression", 299 "operator": "=", 300 "left": { 301 "type": "Identifier", 302 "name": "fa", 303 "decorators": [], 304 "loc": { 305 "start": { 306 "line": 22, 307 "column": 22, 308 "program": "test-if.js" 309 }, 310 "end": { 311 "line": 22, 312 "column": 24, 313 "program": "test-if.js" 314 } 315 } 316 }, 317 "right": { 318 "type": "NumberLiteral", 319 "value": 1, 320 "loc": { 321 "start": { 322 "line": 22, 323 "column": 27, 324 "program": "test-if.js" 325 }, 326 "end": { 327 "line": 22, 328 "column": 28, 329 "program": "test-if.js" 330 } 331 } 332 }, 333 "loc": { 334 "start": { 335 "line": 22, 336 "column": 22, 337 "program": "test-if.js" 338 }, 339 "end": { 340 "line": 22, 341 "column": 28, 342 "program": "test-if.js" 343 } 344 } 345 }, 346 "loc": { 347 "start": { 348 "line": 22, 349 "column": 22, 350 "program": "test-if.js" 351 }, 352 "end": { 353 "line": 22, 354 "column": 28, 355 "program": "test-if.js" 356 } 357 } 358 }, 359 "loc": { 360 "start": { 361 "line": 22, 362 "column": 1, 363 "program": "test-if.js" 364 }, 365 "end": { 366 "line": 22, 367 "column": 28, 368 "program": "test-if.js" 369 } 370 } 371 }, 372 { 373 "type": "IfStatement", 374 "test": { 375 "type": "NumberLiteral", 376 "value": 0, 377 "loc": { 378 "start": { 379 "line": 24, 380 "column": 4, 381 "program": "test-if.js" 382 }, 383 "end": { 384 "line": 24, 385 "column": 5, 386 "program": "test-if.js" 387 } 388 } 389 }, 390 "consequent": { 391 "type": "ExpressionStatement", 392 "expression": { 393 "type": "AssignmentExpression", 394 "operator": "=", 395 "left": { 396 "type": "Identifier", 397 "name": "alma", 398 "decorators": [], 399 "loc": { 400 "start": { 401 "line": 25, 402 "column": 3, 403 "program": "test-if.js" 404 }, 405 "end": { 406 "line": 25, 407 "column": 7, 408 "program": "test-if.js" 409 } 410 } 411 }, 412 "right": { 413 "type": "NumberLiteral", 414 "value": 0, 415 "loc": { 416 "start": { 417 "line": 25, 418 "column": 10, 419 "program": "test-if.js" 420 }, 421 "end": { 422 "line": 25, 423 "column": 11, 424 "program": "test-if.js" 425 } 426 } 427 }, 428 "loc": { 429 "start": { 430 "line": 25, 431 "column": 3, 432 "program": "test-if.js" 433 }, 434 "end": { 435 "line": 25, 436 "column": 11, 437 "program": "test-if.js" 438 } 439 } 440 }, 441 "loc": { 442 "start": { 443 "line": 25, 444 "column": 3, 445 "program": "test-if.js" 446 }, 447 "end": { 448 "line": 25, 449 "column": 12, 450 "program": "test-if.js" 451 } 452 } 453 }, 454 "alternate": { 455 "type": "ExpressionStatement", 456 "expression": { 457 "type": "AssignmentExpression", 458 "operator": "=", 459 "left": { 460 "type": "Identifier", 461 "name": "fa", 462 "decorators": [], 463 "loc": { 464 "start": { 465 "line": 26, 466 "column": 6, 467 "program": "test-if.js" 468 }, 469 "end": { 470 "line": 26, 471 "column": 8, 472 "program": "test-if.js" 473 } 474 } 475 }, 476 "right": { 477 "type": "NumberLiteral", 478 "value": 1, 479 "loc": { 480 "start": { 481 "line": 26, 482 "column": 11, 483 "program": "test-if.js" 484 }, 485 "end": { 486 "line": 26, 487 "column": 12, 488 "program": "test-if.js" 489 } 490 } 491 }, 492 "loc": { 493 "start": { 494 "line": 26, 495 "column": 6, 496 "program": "test-if.js" 497 }, 498 "end": { 499 "line": 26, 500 "column": 12, 501 "program": "test-if.js" 502 } 503 } 504 }, 505 "loc": { 506 "start": { 507 "line": 26, 508 "column": 6, 509 "program": "test-if.js" 510 }, 511 "end": { 512 "line": 26, 513 "column": 12, 514 "program": "test-if.js" 515 } 516 } 517 }, 518 "loc": { 519 "start": { 520 "line": 24, 521 "column": 1, 522 "program": "test-if.js" 523 }, 524 "end": { 525 "line": 26, 526 "column": 12, 527 "program": "test-if.js" 528 } 529 } 530 }, 531 { 532 "type": "IfStatement", 533 "test": { 534 "type": "NumberLiteral", 535 "value": 0, 536 "loc": { 537 "start": { 538 "line": 28, 539 "column": 4, 540 "program": "test-if.js" 541 }, 542 "end": { 543 "line": 28, 544 "column": 5, 545 "program": "test-if.js" 546 } 547 } 548 }, 549 "consequent": { 550 "type": "BlockStatement", 551 "statements": [ 552 { 553 "type": "ExpressionStatement", 554 "expression": { 555 "type": "AssignmentExpression", 556 "operator": "=", 557 "left": { 558 "type": "Identifier", 559 "name": "alma", 560 "decorators": [], 561 "loc": { 562 "start": { 563 "line": 28, 564 "column": 8, 565 "program": "test-if.js" 566 }, 567 "end": { 568 "line": 28, 569 "column": 12, 570 "program": "test-if.js" 571 } 572 } 573 }, 574 "right": { 575 "type": "NumberLiteral", 576 "value": 0, 577 "loc": { 578 "start": { 579 "line": 28, 580 "column": 15, 581 "program": "test-if.js" 582 }, 583 "end": { 584 "line": 28, 585 "column": 16, 586 "program": "test-if.js" 587 } 588 } 589 }, 590 "loc": { 591 "start": { 592 "line": 28, 593 "column": 8, 594 "program": "test-if.js" 595 }, 596 "end": { 597 "line": 28, 598 "column": 16, 599 "program": "test-if.js" 600 } 601 } 602 }, 603 "loc": { 604 "start": { 605 "line": 28, 606 "column": 8, 607 "program": "test-if.js" 608 }, 609 "end": { 610 "line": 28, 611 "column": 16, 612 "program": "test-if.js" 613 } 614 } 615 } 616 ], 617 "loc": { 618 "start": { 619 "line": 28, 620 "column": 7, 621 "program": "test-if.js" 622 }, 623 "end": { 624 "line": 28, 625 "column": 17, 626 "program": "test-if.js" 627 } 628 } 629 }, 630 "alternate": { 631 "type": "ExpressionStatement", 632 "expression": { 633 "type": "AssignmentExpression", 634 "operator": "=", 635 "left": { 636 "type": "Identifier", 637 "name": "fa", 638 "decorators": [], 639 "loc": { 640 "start": { 641 "line": 28, 642 "column": 23, 643 "program": "test-if.js" 644 }, 645 "end": { 646 "line": 28, 647 "column": 25, 648 "program": "test-if.js" 649 } 650 } 651 }, 652 "right": { 653 "type": "NumberLiteral", 654 "value": 1, 655 "loc": { 656 "start": { 657 "line": 28, 658 "column": 28, 659 "program": "test-if.js" 660 }, 661 "end": { 662 "line": 28, 663 "column": 29, 664 "program": "test-if.js" 665 } 666 } 667 }, 668 "loc": { 669 "start": { 670 "line": 28, 671 "column": 23, 672 "program": "test-if.js" 673 }, 674 "end": { 675 "line": 28, 676 "column": 29, 677 "program": "test-if.js" 678 } 679 } 680 }, 681 "loc": { 682 "start": { 683 "line": 28, 684 "column": 23, 685 "program": "test-if.js" 686 }, 687 "end": { 688 "line": 28, 689 "column": 29, 690 "program": "test-if.js" 691 } 692 } 693 }, 694 "loc": { 695 "start": { 696 "line": 28, 697 "column": 1, 698 "program": "test-if.js" 699 }, 700 "end": { 701 "line": 28, 702 "column": 29, 703 "program": "test-if.js" 704 } 705 } 706 }, 707 { 708 "type": "IfStatement", 709 "test": { 710 "type": "NumberLiteral", 711 "value": 0, 712 "loc": { 713 "start": { 714 "line": 30, 715 "column": 5, 716 "program": "test-if.js" 717 }, 718 "end": { 719 "line": 30, 720 "column": 6, 721 "program": "test-if.js" 722 } 723 } 724 }, 725 "consequent": { 726 "type": "EmptyStatement", 727 "loc": { 728 "start": { 729 "line": 30, 730 "column": 7, 731 "program": "test-if.js" 732 }, 733 "end": { 734 "line": 30, 735 "column": 8, 736 "program": "test-if.js" 737 } 738 } 739 }, 740 "alternate": { 741 "type": "IfStatement", 742 "test": { 743 "type": "StringLiteral", 744 "value": "alma", 745 "loc": { 746 "start": { 747 "line": 32, 748 "column": 4, 749 "program": "test-if.js" 750 }, 751 "end": { 752 "line": 32, 753 "column": 10, 754 "program": "test-if.js" 755 } 756 } 757 }, 758 "consequent": { 759 "type": "EmptyStatement", 760 "loc": { 761 "start": { 762 "line": 32, 763 "column": 11, 764 "program": "test-if.js" 765 }, 766 "end": { 767 "line": 32, 768 "column": 12, 769 "program": "test-if.js" 770 } 771 } 772 }, 773 "alternate": null, 774 "loc": { 775 "start": { 776 "line": 32, 777 "column": 1, 778 "program": "test-if.js" 779 }, 780 "end": { 781 "line": 32, 782 "column": 12, 783 "program": "test-if.js" 784 } 785 } 786 }, 787 "loc": { 788 "start": { 789 "line": 30, 790 "column": 1, 791 "program": "test-if.js" 792 }, 793 "end": { 794 "line": 32, 795 "column": 12, 796 "program": "test-if.js" 797 } 798 } 799 }, 800 { 801 "type": "IfStatement", 802 "test": { 803 "type": "NumberLiteral", 804 "value": 0, 805 "loc": { 806 "start": { 807 "line": 34, 808 "column": 4, 809 "program": "test-if.js" 810 }, 811 "end": { 812 "line": 34, 813 "column": 5, 814 "program": "test-if.js" 815 } 816 } 817 }, 818 "consequent": { 819 "type": "EmptyStatement", 820 "loc": { 821 "start": { 822 "line": 34, 823 "column": 6, 824 "program": "test-if.js" 825 }, 826 "end": { 827 "line": 34, 828 "column": 7, 829 "program": "test-if.js" 830 } 831 } 832 }, 833 "alternate": { 834 "type": "IfStatement", 835 "test": { 836 "type": "NumberLiteral", 837 "value": 0, 838 "loc": { 839 "start": { 840 "line": 34, 841 "column": 16, 842 "program": "test-if.js" 843 }, 844 "end": { 845 "line": 34, 846 "column": 17, 847 "program": "test-if.js" 848 } 849 } 850 }, 851 "consequent": { 852 "type": "EmptyStatement", 853 "loc": { 854 "start": { 855 "line": 34, 856 "column": 19, 857 "program": "test-if.js" 858 }, 859 "end": { 860 "line": 34, 861 "column": 20, 862 "program": "test-if.js" 863 } 864 } 865 }, 866 "alternate": { 867 "type": "IfStatement", 868 "test": { 869 "type": "NumberLiteral", 870 "value": 1, 871 "loc": { 872 "start": { 873 "line": 34, 874 "column": 28, 875 "program": "test-if.js" 876 }, 877 "end": { 878 "line": 34, 879 "column": 29, 880 "program": "test-if.js" 881 } 882 } 883 }, 884 "consequent": { 885 "type": "ExpressionStatement", 886 "expression": { 887 "type": "AssignmentExpression", 888 "operator": "=", 889 "left": { 890 "type": "Identifier", 891 "name": "alma", 892 "decorators": [], 893 "loc": { 894 "start": { 895 "line": 34, 896 "column": 31, 897 "program": "test-if.js" 898 }, 899 "end": { 900 "line": 34, 901 "column": 35, 902 "program": "test-if.js" 903 } 904 } 905 }, 906 "right": { 907 "type": "StringLiteral", 908 "value": "fa", 909 "loc": { 910 "start": { 911 "line": 34, 912 "column": 38, 913 "program": "test-if.js" 914 }, 915 "end": { 916 "line": 34, 917 "column": 42, 918 "program": "test-if.js" 919 } 920 } 921 }, 922 "loc": { 923 "start": { 924 "line": 34, 925 "column": 31, 926 "program": "test-if.js" 927 }, 928 "end": { 929 "line": 34, 930 "column": 42, 931 "program": "test-if.js" 932 } 933 } 934 }, 935 "loc": { 936 "start": { 937 "line": 34, 938 "column": 31, 939 "program": "test-if.js" 940 }, 941 "end": { 942 "line": 34, 943 "column": 43, 944 "program": "test-if.js" 945 } 946 } 947 }, 948 "alternate": { 949 "type": "EmptyStatement", 950 "loc": { 951 "start": { 952 "line": 34, 953 "column": 48, 954 "program": "test-if.js" 955 }, 956 "end": { 957 "line": 34, 958 "column": 49, 959 "program": "test-if.js" 960 } 961 } 962 }, 963 "loc": { 964 "start": { 965 "line": 34, 966 "column": 25, 967 "program": "test-if.js" 968 }, 969 "end": { 970 "line": 34, 971 "column": 49, 972 "program": "test-if.js" 973 } 974 } 975 }, 976 "loc": { 977 "start": { 978 "line": 34, 979 "column": 13, 980 "program": "test-if.js" 981 }, 982 "end": { 983 "line": 34, 984 "column": 49, 985 "program": "test-if.js" 986 } 987 } 988 }, 989 "loc": { 990 "start": { 991 "line": 34, 992 "column": 1, 993 "program": "test-if.js" 994 }, 995 "end": { 996 "line": 34, 997 "column": 49, 998 "program": "test-if.js" 999 } 1000 } 1001 } 1002 ], 1003 "loc": { 1004 "start": { 1005 "line": 1, 1006 "column": 1, 1007 "program": "test-if.js" 1008 }, 1009 "end": { 1010 "line": 34, 1011 "column": 49, 1012 "program": "test-if.js" 1013 } 1014 } 1015} 1016