• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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": "class_instance_creation",
150          "decorators": [],
151          "loc": {
152            "start": {
153              "line": 18,
154              "column": 7
155            },
156            "end": {
157              "line": 18,
158              "column": 30
159            }
160          }
161        },
162        "superClass": null,
163        "implements": [],
164        "body": [
165          {
166            "type": "MethodDefinition",
167            "key": {
168              "type": "Identifier",
169              "name": "constructor",
170              "decorators": [],
171              "loc": {
172                "start": {
173                  "line": 1,
174                  "column": 1
175                },
176                "end": {
177                  "line": 1,
178                  "column": 1
179                }
180              }
181            },
182            "kind": "constructor",
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": "constructor",
194                  "decorators": [],
195                  "loc": {
196                    "start": {
197                      "line": 1,
198                      "column": 1
199                    },
200                    "end": {
201                      "line": 1,
202                      "column": 1
203                    }
204                  }
205                },
206                "generator": false,
207                "async": false,
208                "expression": false,
209                "params": [
210                  {
211                    "type": "ETSParameterExpression",
212                    "name": {
213                      "type": "Identifier",
214                      "name": "i",
215                      "typeAnnotation": {
216                        "type": "ETSPrimitiveType",
217                        "loc": {
218                          "start": {
219                            "line": 19,
220                            "column": 21
221                          },
222                          "end": {
223                            "line": 19,
224                            "column": 24
225                          }
226                        }
227                      },
228                      "decorators": [],
229                      "loc": {
230                        "start": {
231                          "line": 19,
232                          "column": 17
233                        },
234                        "end": {
235                          "line": 19,
236                          "column": 24
237                        }
238                      }
239                    },
240                    "loc": {
241                      "start": {
242                        "line": 19,
243                        "column": 17
244                      },
245                      "end": {
246                        "line": 19,
247                        "column": 24
248                      }
249                    }
250                  }
251                ],
252                "body": {
253                  "type": "BlockStatement",
254                  "statements": [],
255                  "loc": {
256                    "start": {
257                      "line": 19,
258                      "column": 26
259                    },
260                    "end": {
261                      "line": 20,
262                      "column": 6
263                    }
264                  }
265                },
266                "loc": {
267                  "start": {
268                    "line": 19,
269                    "column": 16
270                  },
271                  "end": {
272                    "line": 20,
273                    "column": 6
274                  }
275                }
276              },
277              "loc": {
278                "start": {
279                  "line": 19,
280                  "column": 16
281                },
282                "end": {
283                  "line": 20,
284                  "column": 6
285                }
286              }
287            },
288            "overloads": [
289              {
290                "type": "MethodDefinition",
291                "key": {
292                  "type": "Identifier",
293                  "name": "constructor",
294                  "decorators": [],
295                  "loc": {
296                    "start": {
297                      "line": 1,
298                      "column": 1
299                    },
300                    "end": {
301                      "line": 1,
302                      "column": 1
303                    }
304                  }
305                },
306                "kind": "constructor",
307                "accessibility": "public",
308                "static": false,
309                "optional": false,
310                "computed": false,
311                "value": {
312                  "type": "FunctionExpression",
313                  "function": {
314                    "type": "ScriptFunction",
315                    "id": {
316                      "type": "Identifier",
317                      "name": "constructor",
318                      "decorators": [],
319                      "loc": {
320                        "start": {
321                          "line": 1,
322                          "column": 1
323                        },
324                        "end": {
325                          "line": 1,
326                          "column": 1
327                        }
328                      }
329                    },
330                    "generator": false,
331                    "async": false,
332                    "expression": false,
333                    "params": [],
334                    "body": {
335                      "type": "BlockStatement",
336                      "statements": [],
337                      "loc": {
338                        "start": {
339                          "line": 22,
340                          "column": 19
341                        },
342                        "end": {
343                          "line": 23,
344                          "column": 6
345                        }
346                      }
347                    },
348                    "loc": {
349                      "start": {
350                        "line": 22,
351                        "column": 16
352                      },
353                      "end": {
354                        "line": 23,
355                        "column": 6
356                      }
357                    }
358                  },
359                  "loc": {
360                    "start": {
361                      "line": 22,
362                      "column": 16
363                    },
364                    "end": {
365                      "line": 23,
366                      "column": 6
367                    }
368                  }
369                },
370                "overloads": [],
371                "decorators": [],
372                "loc": {
373                  "start": {
374                    "line": 22,
375                    "column": 5
376                  },
377                  "end": {
378                    "line": 23,
379                    "column": 6
380                  }
381                }
382              },
383              {
384                "type": "MethodDefinition",
385                "key": {
386                  "type": "Identifier",
387                  "name": "constructor",
388                  "decorators": [],
389                  "loc": {
390                    "start": {
391                      "line": 1,
392                      "column": 1
393                    },
394                    "end": {
395                      "line": 1,
396                      "column": 1
397                    }
398                  }
399                },
400                "kind": "constructor",
401                "accessibility": "public",
402                "static": false,
403                "optional": false,
404                "computed": false,
405                "value": {
406                  "type": "FunctionExpression",
407                  "function": {
408                    "type": "ScriptFunction",
409                    "id": {
410                      "type": "Identifier",
411                      "name": "constructor",
412                      "decorators": [],
413                      "loc": {
414                        "start": {
415                          "line": 1,
416                          "column": 1
417                        },
418                        "end": {
419                          "line": 1,
420                          "column": 1
421                        }
422                      }
423                    },
424                    "generator": false,
425                    "async": false,
426                    "expression": false,
427                    "params": [
428                      {
429                        "type": "ETSParameterExpression",
430                        "name": {
431                          "type": "Identifier",
432                          "name": "s",
433                          "typeAnnotation": {
434                            "type": "ETSTypeReference",
435                            "part": {
436                              "type": "ETSTypeReferencePart",
437                              "name": {
438                                "type": "Identifier",
439                                "name": "String",
440                                "decorators": [],
441                                "loc": {
442                                  "start": {
443                                    "line": 25,
444                                    "column": 21
445                                  },
446                                  "end": {
447                                    "line": 25,
448                                    "column": 27
449                                  }
450                                }
451                              },
452                              "loc": {
453                                "start": {
454                                  "line": 25,
455                                  "column": 21
456                                },
457                                "end": {
458                                  "line": 25,
459                                  "column": 28
460                                }
461                              }
462                            },
463                            "loc": {
464                              "start": {
465                                "line": 25,
466                                "column": 21
467                              },
468                              "end": {
469                                "line": 25,
470                                "column": 28
471                              }
472                            }
473                          },
474                          "decorators": [],
475                          "loc": {
476                            "start": {
477                              "line": 25,
478                              "column": 17
479                            },
480                            "end": {
481                              "line": 25,
482                              "column": 28
483                            }
484                          }
485                        },
486                        "loc": {
487                          "start": {
488                            "line": 25,
489                            "column": 17
490                          },
491                          "end": {
492                            "line": 25,
493                            "column": 28
494                          }
495                        }
496                      },
497                      {
498                        "type": "ETSParameterExpression",
499                        "name": {
500                          "type": "Identifier",
501                          "name": "d",
502                          "typeAnnotation": {
503                            "type": "ETSPrimitiveType",
504                            "loc": {
505                              "start": {
506                                "line": 25,
507                                "column": 33
508                              },
509                              "end": {
510                                "line": 25,
511                                "column": 39
512                              }
513                            }
514                          },
515                          "decorators": [],
516                          "loc": {
517                            "start": {
518                              "line": 25,
519                              "column": 29
520                            },
521                            "end": {
522                              "line": 25,
523                              "column": 39
524                            }
525                          }
526                        },
527                        "loc": {
528                          "start": {
529                            "line": 25,
530                            "column": 29
531                          },
532                          "end": {
533                            "line": 25,
534                            "column": 39
535                          }
536                        }
537                      }
538                    ],
539                    "body": {
540                      "type": "BlockStatement",
541                      "statements": [],
542                      "loc": {
543                        "start": {
544                          "line": 25,
545                          "column": 41
546                        },
547                        "end": {
548                          "line": 26,
549                          "column": 6
550                        }
551                      }
552                    },
553                    "loc": {
554                      "start": {
555                        "line": 25,
556                        "column": 16
557                      },
558                      "end": {
559                        "line": 26,
560                        "column": 6
561                      }
562                    }
563                  },
564                  "loc": {
565                    "start": {
566                      "line": 25,
567                      "column": 16
568                    },
569                    "end": {
570                      "line": 26,
571                      "column": 6
572                    }
573                  }
574                },
575                "overloads": [],
576                "decorators": [],
577                "loc": {
578                  "start": {
579                    "line": 25,
580                    "column": 5
581                  },
582                  "end": {
583                    "line": 26,
584                    "column": 6
585                  }
586                }
587              }
588            ],
589            "decorators": [],
590            "loc": {
591              "start": {
592                "line": 19,
593                "column": 5
594              },
595              "end": {
596                "line": 20,
597                "column": 6
598              }
599            }
600          },
601          {
602            "type": "ClassProperty",
603            "key": {
604              "type": "Identifier",
605              "name": "inst1",
606              "decorators": [],
607              "loc": {
608                "start": {
609                  "line": 28,
610                  "column": 12
611                },
612                "end": {
613                  "line": 28,
614                  "column": 17
615                }
616              }
617            },
618            "value": {
619              "type": "ETSNewClassInstanceExpression",
620              "typeReference": {
621                "type": "ETSTypeReference",
622                "part": {
623                  "type": "ETSTypeReferencePart",
624                  "name": {
625                    "type": "Identifier",
626                    "name": "class_instance_creation",
627                    "decorators": [],
628                    "loc": {
629                      "start": {
630                        "line": 28,
631                        "column": 50
632                      },
633                      "end": {
634                        "line": 28,
635                        "column": 73
636                      }
637                    }
638                  },
639                  "loc": {
640                    "start": {
641                      "line": 28,
642                      "column": 50
643                    },
644                    "end": {
645                      "line": 28,
646                      "column": 74
647                    }
648                  }
649                },
650                "loc": {
651                  "start": {
652                    "line": 28,
653                    "column": 50
654                  },
655                  "end": {
656                    "line": 28,
657                    "column": 74
658                  }
659                }
660              },
661              "arguments": [],
662              "loc": {
663                "start": {
664                  "line": 28,
665                  "column": 46
666                },
667                "end": {
668                  "line": 28,
669                  "column": 76
670                }
671              }
672            },
673            "accessibility": "public",
674            "static": true,
675            "readonly": false,
676            "declare": false,
677            "optional": false,
678            "computed": false,
679            "typeAnnotation": {
680              "type": "ETSTypeReference",
681              "part": {
682                "type": "ETSTypeReferencePart",
683                "name": {
684                  "type": "Identifier",
685                  "name": "class_instance_creation",
686                  "decorators": [],
687                  "loc": {
688                    "start": {
689                      "line": 28,
690                      "column": 20
691                    },
692                    "end": {
693                      "line": 28,
694                      "column": 43
695                    }
696                  }
697                },
698                "loc": {
699                  "start": {
700                    "line": 28,
701                    "column": 20
702                  },
703                  "end": {
704                    "line": 28,
705                    "column": 45
706                  }
707                }
708              },
709              "loc": {
710                "start": {
711                  "line": 28,
712                  "column": 20
713                },
714                "end": {
715                  "line": 28,
716                  "column": 45
717                }
718              }
719            },
720            "definite": false,
721            "decorators": [],
722            "loc": {
723              "start": {
724                "line": 28,
725                "column": 12
726              },
727              "end": {
728                "line": 28,
729                "column": 76
730              }
731            }
732          },
733          {
734            "type": "ClassProperty",
735            "key": {
736              "type": "Identifier",
737              "name": "inst2",
738              "decorators": [],
739              "loc": {
740                "start": {
741                  "line": 29,
742                  "column": 12
743                },
744                "end": {
745                  "line": 29,
746                  "column": 17
747                }
748              }
749            },
750            "value": {
751              "type": "ETSNewClassInstanceExpression",
752              "typeReference": {
753                "type": "ETSTypeReference",
754                "part": {
755                  "type": "ETSTypeReferencePart",
756                  "name": {
757                    "type": "Identifier",
758                    "name": "class_instance_creation",
759                    "decorators": [],
760                    "loc": {
761                      "start": {
762                        "line": 29,
763                        "column": 50
764                      },
765                      "end": {
766                        "line": 29,
767                        "column": 73
768                      }
769                    }
770                  },
771                  "loc": {
772                    "start": {
773                      "line": 29,
774                      "column": 50
775                    },
776                    "end": {
777                      "line": 29,
778                      "column": 74
779                    }
780                  }
781                },
782                "loc": {
783                  "start": {
784                    "line": 29,
785                    "column": 50
786                  },
787                  "end": {
788                    "line": 29,
789                    "column": 74
790                  }
791                }
792              },
793              "arguments": [
794                {
795                  "type": "NumberLiteral",
796                  "value": 3,
797                  "loc": {
798                    "start": {
799                      "line": 29,
800                      "column": 74
801                    },
802                    "end": {
803                      "line": 29,
804                      "column": 75
805                    }
806                  }
807                }
808              ],
809              "loc": {
810                "start": {
811                  "line": 29,
812                  "column": 46
813                },
814                "end": {
815                  "line": 29,
816                  "column": 77
817                }
818              }
819            },
820            "accessibility": "public",
821            "static": true,
822            "readonly": false,
823            "declare": false,
824            "optional": false,
825            "computed": false,
826            "typeAnnotation": {
827              "type": "ETSTypeReference",
828              "part": {
829                "type": "ETSTypeReferencePart",
830                "name": {
831                  "type": "Identifier",
832                  "name": "class_instance_creation",
833                  "decorators": [],
834                  "loc": {
835                    "start": {
836                      "line": 29,
837                      "column": 20
838                    },
839                    "end": {
840                      "line": 29,
841                      "column": 43
842                    }
843                  }
844                },
845                "loc": {
846                  "start": {
847                    "line": 29,
848                    "column": 20
849                  },
850                  "end": {
851                    "line": 29,
852                    "column": 45
853                  }
854                }
855              },
856              "loc": {
857                "start": {
858                  "line": 29,
859                  "column": 20
860                },
861                "end": {
862                  "line": 29,
863                  "column": 45
864                }
865              }
866            },
867            "definite": false,
868            "decorators": [],
869            "loc": {
870              "start": {
871                "line": 29,
872                "column": 12
873              },
874              "end": {
875                "line": 29,
876                "column": 77
877              }
878            }
879          },
880          {
881            "type": "ClassProperty",
882            "key": {
883              "type": "Identifier",
884              "name": "inst3",
885              "decorators": [],
886              "loc": {
887                "start": {
888                  "line": 30,
889                  "column": 12
890                },
891                "end": {
892                  "line": 30,
893                  "column": 17
894                }
895              }
896            },
897            "value": {
898              "type": "ETSNewClassInstanceExpression",
899              "typeReference": {
900                "type": "ETSTypeReference",
901                "part": {
902                  "type": "ETSTypeReferencePart",
903                  "name": {
904                    "type": "Identifier",
905                    "name": "class_instance_creation",
906                    "decorators": [],
907                    "loc": {
908                      "start": {
909                        "line": 30,
910                        "column": 50
911                      },
912                      "end": {
913                        "line": 30,
914                        "column": 73
915                      }
916                    }
917                  },
918                  "loc": {
919                    "start": {
920                      "line": 30,
921                      "column": 50
922                    },
923                    "end": {
924                      "line": 30,
925                      "column": 74
926                    }
927                  }
928                },
929                "loc": {
930                  "start": {
931                    "line": 30,
932                    "column": 50
933                  },
934                  "end": {
935                    "line": 30,
936                    "column": 74
937                  }
938                }
939              },
940              "arguments": [
941                {
942                  "type": "StringLiteral",
943                  "value": "ss",
944                  "loc": {
945                    "start": {
946                      "line": 30,
947                      "column": 74
948                    },
949                    "end": {
950                      "line": 30,
951                      "column": 78
952                    }
953                  }
954                },
955                {
956                  "type": "NumberLiteral",
957                  "value": 7.8,
958                  "loc": {
959                    "start": {
960                      "line": 30,
961                      "column": 80
962                    },
963                    "end": {
964                      "line": 30,
965                      "column": 83
966                    }
967                  }
968                }
969              ],
970              "loc": {
971                "start": {
972                  "line": 30,
973                  "column": 46
974                },
975                "end": {
976                  "line": 30,
977                  "column": 85
978                }
979              }
980            },
981            "accessibility": "public",
982            "static": true,
983            "readonly": false,
984            "declare": false,
985            "optional": false,
986            "computed": false,
987            "typeAnnotation": {
988              "type": "ETSTypeReference",
989              "part": {
990                "type": "ETSTypeReferencePart",
991                "name": {
992                  "type": "Identifier",
993                  "name": "class_instance_creation",
994                  "decorators": [],
995                  "loc": {
996                    "start": {
997                      "line": 30,
998                      "column": 20
999                    },
1000                    "end": {
1001                      "line": 30,
1002                      "column": 43
1003                    }
1004                  }
1005                },
1006                "loc": {
1007                  "start": {
1008                    "line": 30,
1009                    "column": 20
1010                  },
1011                  "end": {
1012                    "line": 30,
1013                    "column": 45
1014                  }
1015                }
1016              },
1017              "loc": {
1018                "start": {
1019                  "line": 30,
1020                  "column": 20
1021                },
1022                "end": {
1023                  "line": 30,
1024                  "column": 45
1025                }
1026              }
1027            },
1028            "definite": false,
1029            "decorators": [],
1030            "loc": {
1031              "start": {
1032                "line": 30,
1033                "column": 12
1034              },
1035              "end": {
1036                "line": 30,
1037                "column": 85
1038              }
1039            }
1040          }
1041        ],
1042        "loc": {
1043          "start": {
1044            "line": 18,
1045            "column": 32
1046          },
1047          "end": {
1048            "line": 31,
1049            "column": 2
1050          }
1051        }
1052      },
1053      "loc": {
1054        "start": {
1055          "line": 18,
1056          "column": 1
1057        },
1058        "end": {
1059          "line": 31,
1060          "column": 2
1061        }
1062      }
1063    },
1064    {
1065      "type": "ClassDeclaration",
1066      "definition": {
1067        "id": {
1068          "type": "Identifier",
1069          "name": "ETSGLOBAL",
1070          "decorators": [],
1071          "loc": {
1072            "start": {
1073              "line": 1,
1074              "column": 1
1075            },
1076            "end": {
1077              "line": 1,
1078              "column": 1
1079            }
1080          }
1081        },
1082        "superClass": null,
1083        "implements": [],
1084        "body": [],
1085        "loc": {
1086          "start": {
1087            "line": 1,
1088            "column": 1
1089          },
1090          "end": {
1091            "line": 1,
1092            "column": 1
1093          }
1094        }
1095      },
1096      "loc": {
1097        "start": {
1098          "line": 1,
1099          "column": 1
1100        },
1101        "end": {
1102          "line": 1,
1103          "column": 1
1104        }
1105      }
1106    }
1107  ],
1108  "loc": {
1109    "start": {
1110      "line": 1,
1111      "column": 1
1112    },
1113    "end": {
1114      "line": 32,
1115      "column": 1
1116    }
1117  }
1118}
1119