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