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