1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "var1", 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 5 16 }, 17 "end": { 18 "line": 17, 19 "column": 9 20 } 21 } 22 }, 23 "init": null, 24 "loc": { 25 "start": { 26 "line": 17, 27 "column": 5 28 }, 29 "end": { 30 "line": 17, 31 "column": 9 32 } 33 } 34 } 35 ], 36 "kind": "var", 37 "loc": { 38 "start": { 39 "line": 17, 40 "column": 1 41 }, 42 "end": { 43 "line": 17, 44 "column": 10 45 } 46 } 47 }, 48 { 49 "type": "VariableDeclaration", 50 "declarations": [ 51 { 52 "type": "VariableDeclarator", 53 "id": { 54 "type": "Identifier", 55 "name": "var2", 56 "loc": { 57 "start": { 58 "line": 18, 59 "column": 13 60 }, 61 "end": { 62 "line": 18, 63 "column": 17 64 } 65 } 66 }, 67 "init": null, 68 "loc": { 69 "start": { 70 "line": 18, 71 "column": 13 72 }, 73 "end": { 74 "line": 18, 75 "column": 17 76 } 77 } 78 } 79 ], 80 "kind": "var", 81 "declare": true, 82 "loc": { 83 "start": { 84 "line": 18, 85 "column": 9 86 }, 87 "end": { 88 "line": 18, 89 "column": 18 90 } 91 } 92 }, 93 { 94 "type": "VariableDeclaration", 95 "declarations": [ 96 { 97 "type": "VariableDeclarator", 98 "id": { 99 "type": "Identifier", 100 "name": "var3", 101 "loc": { 102 "start": { 103 "line": 20, 104 "column": 5 105 }, 106 "end": { 107 "line": 20, 108 "column": 9 109 } 110 } 111 }, 112 "init": null, 113 "loc": { 114 "start": { 115 "line": 20, 116 "column": 5 117 }, 118 "end": { 119 "line": 20, 120 "column": 9 121 } 122 } 123 } 124 ], 125 "kind": "let", 126 "loc": { 127 "start": { 128 "line": 20, 129 "column": 1 130 }, 131 "end": { 132 "line": 20, 133 "column": 10 134 } 135 } 136 }, 137 { 138 "type": "VariableDeclaration", 139 "declarations": [ 140 { 141 "type": "VariableDeclarator", 142 "id": { 143 "type": "Identifier", 144 "name": "var4", 145 "loc": { 146 "start": { 147 "line": 21, 148 "column": 13 149 }, 150 "end": { 151 "line": 21, 152 "column": 17 153 } 154 } 155 }, 156 "init": null, 157 "loc": { 158 "start": { 159 "line": 21, 160 "column": 13 161 }, 162 "end": { 163 "line": 21, 164 "column": 17 165 } 166 } 167 } 168 ], 169 "kind": "let", 170 "declare": true, 171 "loc": { 172 "start": { 173 "line": 21, 174 "column": 9 175 }, 176 "end": { 177 "line": 21, 178 "column": 18 179 } 180 } 181 }, 182 { 183 "type": "VariableDeclaration", 184 "declarations": [ 185 { 186 "type": "VariableDeclarator", 187 "id": { 188 "type": "Identifier", 189 "name": "var5", 190 "loc": { 191 "start": { 192 "line": 23, 193 "column": 7 194 }, 195 "end": { 196 "line": 23, 197 "column": 11 198 } 199 } 200 }, 201 "init": { 202 "type": "NumberLiteral", 203 "value": 1, 204 "loc": { 205 "start": { 206 "line": 23, 207 "column": 14 208 }, 209 "end": { 210 "line": 23, 211 "column": 15 212 } 213 } 214 }, 215 "loc": { 216 "start": { 217 "line": 23, 218 "column": 7 219 }, 220 "end": { 221 "line": 23, 222 "column": 15 223 } 224 } 225 } 226 ], 227 "kind": "const", 228 "loc": { 229 "start": { 230 "line": 23, 231 "column": 1 232 }, 233 "end": { 234 "line": 23, 235 "column": 16 236 } 237 } 238 }, 239 { 240 "type": "VariableDeclaration", 241 "declarations": [ 242 { 243 "type": "VariableDeclarator", 244 "id": { 245 "type": "Identifier", 246 "name": "var6", 247 "loc": { 248 "start": { 249 "line": 24, 250 "column": 15 251 }, 252 "end": { 253 "line": 24, 254 "column": 19 255 } 256 } 257 }, 258 "init": { 259 "type": "NumberLiteral", 260 "value": 4, 261 "loc": { 262 "start": { 263 "line": 24, 264 "column": 22 265 }, 266 "end": { 267 "line": 24, 268 "column": 23 269 } 270 } 271 }, 272 "loc": { 273 "start": { 274 "line": 24, 275 "column": 15 276 }, 277 "end": { 278 "line": 24, 279 "column": 23 280 } 281 } 282 } 283 ], 284 "kind": "const", 285 "declare": true, 286 "loc": { 287 "start": { 288 "line": 24, 289 "column": 9 290 }, 291 "end": { 292 "line": 24, 293 "column": 24 294 } 295 } 296 }, 297 { 298 "type": "VariableDeclaration", 299 "declarations": [ 300 { 301 "type": "VariableDeclarator", 302 "id": { 303 "type": "Identifier", 304 "name": "var7", 305 "loc": { 306 "start": { 307 "line": 25, 308 "column": 15 309 }, 310 "end": { 311 "line": 25, 312 "column": 19 313 } 314 } 315 }, 316 "init": null, 317 "loc": { 318 "start": { 319 "line": 25, 320 "column": 15 321 }, 322 "end": { 323 "line": 25, 324 "column": 19 325 } 326 } 327 } 328 ], 329 "kind": "const", 330 "declare": true, 331 "loc": { 332 "start": { 333 "line": 25, 334 "column": 9 335 }, 336 "end": { 337 "line": 25, 338 "column": 20 339 } 340 } 341 }, 342 { 343 "type": "TSTypeAliasDeclaration", 344 "id": { 345 "type": "Identifier", 346 "name": "type1", 347 "loc": { 348 "start": { 349 "line": 27, 350 "column": 6 351 }, 352 "end": { 353 "line": 27, 354 "column": 11 355 } 356 } 357 }, 358 "typeAnnotation": { 359 "type": "TSUnionType", 360 "types": [ 361 { 362 "type": "TSNumberKeyword", 363 "loc": { 364 "start": { 365 "line": 27, 366 "column": 14 367 }, 368 "end": { 369 "line": 27, 370 "column": 20 371 } 372 } 373 }, 374 { 375 "type": "TSStringKeyword", 376 "loc": { 377 "start": { 378 "line": 27, 379 "column": 23 380 }, 381 "end": { 382 "line": 27, 383 "column": 29 384 } 385 } 386 } 387 ], 388 "loc": { 389 "start": { 390 "line": 27, 391 "column": 14 392 }, 393 "end": { 394 "line": 27, 395 "column": 29 396 } 397 } 398 }, 399 "loc": { 400 "start": { 401 "line": 27, 402 "column": 1 403 }, 404 "end": { 405 "line": 27, 406 "column": 30 407 } 408 } 409 }, 410 { 411 "type": "TSTypeAliasDeclaration", 412 "id": { 413 "type": "Identifier", 414 "name": "type2", 415 "loc": { 416 "start": { 417 "line": 28, 418 "column": 14 419 }, 420 "end": { 421 "line": 28, 422 "column": 19 423 } 424 } 425 }, 426 "typeAnnotation": { 427 "type": "TSUnionType", 428 "types": [ 429 { 430 "type": "TSNumberKeyword", 431 "loc": { 432 "start": { 433 "line": 28, 434 "column": 22 435 }, 436 "end": { 437 "line": 28, 438 "column": 28 439 } 440 } 441 }, 442 { 443 "type": "TSStringKeyword", 444 "loc": { 445 "start": { 446 "line": 28, 447 "column": 31 448 }, 449 "end": { 450 "line": 28, 451 "column": 37 452 } 453 } 454 } 455 ], 456 "loc": { 457 "start": { 458 "line": 28, 459 "column": 22 460 }, 461 "end": { 462 "line": 28, 463 "column": 37 464 } 465 } 466 }, 467 "declare": true, 468 "loc": { 469 "start": { 470 "line": 28, 471 "column": 9 472 }, 473 "end": { 474 "line": 28, 475 "column": 38 476 } 477 } 478 }, 479 { 480 "type": "FunctionDeclaration", 481 "function": { 482 "type": "ScriptFunction", 483 "id": { 484 "type": "Identifier", 485 "name": "func1", 486 "loc": { 487 "start": { 488 "line": 30, 489 "column": 10 490 }, 491 "end": { 492 "line": 30, 493 "column": 15 494 } 495 } 496 }, 497 "generator": false, 498 "async": false, 499 "expression": false, 500 "params": [], 501 "body": { 502 "type": "BlockStatement", 503 "statements": [], 504 "loc": { 505 "start": { 506 "line": 30, 507 "column": 18 508 }, 509 "end": { 510 "line": 30, 511 "column": 21 512 } 513 } 514 }, 515 "loc": { 516 "start": { 517 "line": 30, 518 "column": 1 519 }, 520 "end": { 521 "line": 30, 522 "column": 21 523 } 524 } 525 }, 526 "loc": { 527 "start": { 528 "line": 30, 529 "column": 1 530 }, 531 "end": { 532 "line": 30, 533 "column": 21 534 } 535 } 536 }, 537 { 538 "type": "EmptyStatement", 539 "loc": { 540 "start": { 541 "line": 30, 542 "column": 21 543 }, 544 "end": { 545 "line": 30, 546 "column": 22 547 } 548 } 549 }, 550 { 551 "type": "TSDeclareFunction", 552 "function": { 553 "type": "ScriptFunction", 554 "id": { 555 "type": "Identifier", 556 "name": "func2", 557 "loc": { 558 "start": { 559 "line": 31, 560 "column": 18 561 }, 562 "end": { 563 "line": 31, 564 "column": 23 565 } 566 } 567 }, 568 "generator": false, 569 "async": false, 570 "expression": false, 571 "params": [], 572 "declare": true, 573 "loc": { 574 "start": { 575 "line": 31, 576 "column": 9 577 }, 578 "end": { 579 "line": 31, 580 "column": 26 581 } 582 } 583 }, 584 "loc": { 585 "start": { 586 "line": 31, 587 "column": 9 588 }, 589 "end": { 590 "line": 31, 591 "column": 26 592 } 593 } 594 }, 595 { 596 "type": "ExpressionStatement", 597 "expression": { 598 "type": "CallExpression", 599 "callee": { 600 "type": "Identifier", 601 "name": "func2", 602 "loc": { 603 "start": { 604 "line": 32, 605 "column": 1 606 }, 607 "end": { 608 "line": 32, 609 "column": 6 610 } 611 } 612 }, 613 "arguments": [], 614 "optional": false, 615 "loc": { 616 "start": { 617 "line": 32, 618 "column": 1 619 }, 620 "end": { 621 "line": 32, 622 "column": 8 623 } 624 } 625 }, 626 "loc": { 627 "start": { 628 "line": 32, 629 "column": 1 630 }, 631 "end": { 632 "line": 32, 633 "column": 9 634 } 635 } 636 }, 637 { 638 "type": "ClassDeclaration", 639 "definition": { 640 "id": { 641 "type": "Identifier", 642 "name": "Class1", 643 "loc": { 644 "start": { 645 "line": 34, 646 "column": 15 647 }, 648 "end": { 649 "line": 34, 650 "column": 21 651 } 652 } 653 }, 654 "superClass": null, 655 "implements": [], 656 "constructor": { 657 "type": "MethodDefinition", 658 "key": { 659 "type": "Identifier", 660 "name": "constructor", 661 "loc": { 662 "start": { 663 "line": 1, 664 "column": 1 665 }, 666 "end": { 667 "line": 1, 668 "column": 1 669 } 670 } 671 }, 672 "kind": "constructor", 673 "static": false, 674 "optional": false, 675 "computed": false, 676 "value": { 677 "type": "FunctionExpression", 678 "function": { 679 "type": "ScriptFunction", 680 "id": null, 681 "generator": false, 682 "async": false, 683 "expression": false, 684 "params": [], 685 "declare": true, 686 "loc": { 687 "start": { 688 "line": 1, 689 "column": 1 690 }, 691 "end": { 692 "line": 1, 693 "column": 1 694 } 695 } 696 }, 697 "loc": { 698 "start": { 699 "line": 1, 700 "column": 1 701 }, 702 "end": { 703 "line": 1, 704 "column": 1 705 } 706 } 707 }, 708 "overloads": [], 709 "decorators": [], 710 "loc": { 711 "start": { 712 "line": 34, 713 "column": 9 714 }, 715 "end": { 716 "line": 45, 717 "column": 2 718 } 719 } 720 }, 721 "body": [ 722 { 723 "type": "MethodDefinition", 724 "key": { 725 "type": "Identifier", 726 "name": "a", 727 "loc": { 728 "start": { 729 "line": 35, 730 "column": 24 731 }, 732 "end": { 733 "line": 35, 734 "column": 25 735 } 736 } 737 }, 738 "kind": "get", 739 "accessibility": "private", 740 "static": true, 741 "optional": false, 742 "computed": false, 743 "value": { 744 "type": "FunctionExpression", 745 "function": { 746 "type": "ScriptFunction", 747 "id": null, 748 "generator": false, 749 "async": false, 750 "expression": false, 751 "params": [], 752 "loc": { 753 "start": { 754 "line": 35, 755 "column": 25 756 }, 757 "end": { 758 "line": 36, 759 "column": 11 760 } 761 } 762 }, 763 "loc": { 764 "start": { 765 "line": 35, 766 "column": 25 767 }, 768 "end": { 769 "line": 36, 770 "column": 11 771 } 772 } 773 }, 774 "overloads": [], 775 "decorators": [], 776 "loc": { 777 "start": { 778 "line": 35, 779 "column": 5 780 }, 781 "end": { 782 "line": 36, 783 "column": 11 784 } 785 } 786 }, 787 { 788 "type": "MethodDefinition", 789 "key": { 790 "type": "Identifier", 791 "name": "g", 792 "loc": { 793 "start": { 794 "line": 36, 795 "column": 12 796 }, 797 "end": { 798 "line": 36, 799 "column": 13 800 } 801 } 802 }, 803 "kind": "method", 804 "accessibility": "public", 805 "static": false, 806 "optional": false, 807 "computed": false, 808 "value": { 809 "type": "FunctionExpression", 810 "function": { 811 "type": "ScriptFunction", 812 "id": null, 813 "generator": false, 814 "async": false, 815 "expression": false, 816 "params": [], 817 "loc": { 818 "start": { 819 "line": 36, 820 "column": 13 821 }, 822 "end": { 823 "line": 37, 824 "column": 11 825 } 826 } 827 }, 828 "loc": { 829 "start": { 830 "line": 36, 831 "column": 13 832 }, 833 "end": { 834 "line": 37, 835 "column": 11 836 } 837 } 838 }, 839 "overloads": [], 840 "decorators": [], 841 "loc": { 842 "start": { 843 "line": 36, 844 "column": 5 845 }, 846 "end": { 847 "line": 37, 848 "column": 11 849 } 850 } 851 }, 852 { 853 "type": "ClassProperty", 854 "key": { 855 "type": "NumberLiteral", 856 "value": 5, 857 "loc": { 858 "start": { 859 "line": 37, 860 "column": 30 861 }, 862 "end": { 863 "line": 37, 864 "column": 31 865 } 866 } 867 }, 868 "static": true, 869 "readonly": true, 870 "declare": true, 871 "optional": false, 872 "computed": true, 873 "decorators": [], 874 "loc": { 875 "start": { 876 "line": 37, 877 "column": 5 878 }, 879 "end": { 880 "line": 37, 881 "column": 31 882 } 883 } 884 }, 885 { 886 "type": "ClassProperty", 887 "key": { 888 "type": "StringLiteral", 889 "value": "b", 890 "loc": { 891 "start": { 892 "line": 38, 893 "column": 30 894 }, 895 "end": { 896 "line": 38, 897 "column": 33 898 } 899 } 900 }, 901 "static": true, 902 "readonly": true, 903 "declare": true, 904 "optional": false, 905 "computed": true, 906 "decorators": [], 907 "loc": { 908 "start": { 909 "line": 38, 910 "column": 5 911 }, 912 "end": { 913 "line": 38, 914 "column": 33 915 } 916 } 917 }, 918 { 919 "type": "ClassProperty", 920 "key": { 921 "type": "NumberLiteral", 922 "value": 67, 923 "loc": { 924 "start": { 925 "line": 39, 926 "column": 29 927 }, 928 "end": { 929 "line": 39, 930 "column": 31 931 } 932 } 933 }, 934 "static": true, 935 "readonly": true, 936 "declare": true, 937 "optional": false, 938 "computed": false, 939 "decorators": [], 940 "loc": { 941 "start": { 942 "line": 39, 943 "column": 5 944 }, 945 "end": { 946 "line": 39, 947 "column": 31 948 } 949 } 950 }, 951 { 952 "type": "ClassProperty", 953 "key": { 954 "type": "Identifier", 955 "name": "j", 956 "loc": { 957 "start": { 958 "line": 40, 959 "column": 29 960 }, 961 "end": { 962 "line": 40, 963 "column": 30 964 } 965 } 966 }, 967 "static": true, 968 "readonly": true, 969 "declare": true, 970 "optional": false, 971 "computed": false, 972 "decorators": [], 973 "loc": { 974 "start": { 975 "line": 40, 976 "column": 5 977 }, 978 "end": { 979 "line": 40, 980 "column": 30 981 } 982 } 983 }, 984 { 985 "type": "ClassProperty", 986 "key": { 987 "type": "Identifier", 988 "name": "private", 989 "loc": { 990 "start": { 991 "line": 41, 992 "column": 5 993 }, 994 "end": { 995 "line": 41, 996 "column": 12 997 } 998 } 999 }, 1000 "static": false, 1001 "readonly": false, 1002 "declare": false, 1003 "optional": false, 1004 "computed": false, 1005 "decorators": [], 1006 "loc": { 1007 "start": { 1008 "line": 41, 1009 "column": 5 1010 }, 1011 "end": { 1012 "line": 41, 1013 "column": 12 1014 } 1015 } 1016 }, 1017 { 1018 "type": "MethodDefinition", 1019 "key": { 1020 "type": "NumberLiteral", 1021 "value": 1, 1022 "loc": { 1023 "start": { 1024 "line": 42, 1025 "column": 16 1026 }, 1027 "end": { 1028 "line": 42, 1029 "column": 17 1030 } 1031 } 1032 }, 1033 "kind": "method", 1034 "accessibility": "protected", 1035 "static": false, 1036 "optional": false, 1037 "computed": true, 1038 "value": { 1039 "type": "FunctionExpression", 1040 "function": { 1041 "type": "ScriptFunction", 1042 "id": null, 1043 "generator": false, 1044 "async": false, 1045 "expression": false, 1046 "params": [], 1047 "loc": { 1048 "start": { 1049 "line": 42, 1050 "column": 18 1051 }, 1052 "end": { 1053 "line": 43, 1054 "column": 11 1055 } 1056 } 1057 }, 1058 "loc": { 1059 "start": { 1060 "line": 42, 1061 "column": 18 1062 }, 1063 "end": { 1064 "line": 43, 1065 "column": 11 1066 } 1067 } 1068 }, 1069 "overloads": [], 1070 "decorators": [], 1071 "loc": { 1072 "start": { 1073 "line": 42, 1074 "column": 5 1075 }, 1076 "end": { 1077 "line": 43, 1078 "column": 11 1079 } 1080 } 1081 }, 1082 { 1083 "type": "ClassProperty", 1084 "key": { 1085 "type": "Identifier", 1086 "name": "k", 1087 "loc": { 1088 "start": { 1089 "line": 43, 1090 "column": 19 1091 }, 1092 "end": { 1093 "line": 43, 1094 "column": 20 1095 } 1096 } 1097 }, 1098 "accessibility": "public", 1099 "static": true, 1100 "readonly": false, 1101 "declare": false, 1102 "optional": false, 1103 "computed": false, 1104 "decorators": [], 1105 "loc": { 1106 "start": { 1107 "line": 43, 1108 "column": 5 1109 }, 1110 "end": { 1111 "line": 43, 1112 "column": 20 1113 } 1114 } 1115 }, 1116 { 1117 "type": "ClassProperty", 1118 "key": { 1119 "type": "TSPrivateIdentifier", 1120 "key": { 1121 "type": "Identifier", 1122 "name": "o", 1123 "loc": { 1124 "start": { 1125 "line": 44, 1126 "column": 6 1127 }, 1128 "end": { 1129 "line": 44, 1130 "column": 7 1131 } 1132 } 1133 }, 1134 "loc": { 1135 "start": { 1136 "line": 44, 1137 "column": 5 1138 }, 1139 "end": { 1140 "line": 44, 1141 "column": 7 1142 } 1143 } 1144 }, 1145 "static": false, 1146 "readonly": false, 1147 "declare": false, 1148 "optional": false, 1149 "computed": false, 1150 "decorators": [], 1151 "loc": { 1152 "start": { 1153 "line": 44, 1154 "column": 5 1155 }, 1156 "end": { 1157 "line": 44, 1158 "column": 7 1159 } 1160 } 1161 } 1162 ], 1163 "indexSignatures": [], 1164 "loc": { 1165 "start": { 1166 "line": 34, 1167 "column": 22 1168 }, 1169 "end": { 1170 "line": 45, 1171 "column": 2 1172 } 1173 } 1174 }, 1175 "decorators": [], 1176 "loc": { 1177 "start": { 1178 "line": 34, 1179 "column": 9 1180 }, 1181 "end": { 1182 "line": 45, 1183 "column": 2 1184 } 1185 } 1186 } 1187 ], 1188 "loc": { 1189 "start": { 1190 "line": 1, 1191 "column": 1 1192 }, 1193 "end": { 1194 "line": 45, 1195 "column": 2 1196 } 1197 } 1198} 1199