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