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