• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "ImportDeclaration",
6      "source": {
7        "type": "StringLiteral",
8        "value": "./internals",
9        "loc": {
10          "start": {
11            "line": 16,
12            "column": 37,
13            "program": "repeat.ets"
14          },
15          "end": {
16            "line": 16,
17            "column": 50,
18            "program": "repeat.ets"
19          }
20        }
21      },
22      "specifiers": [
23        {
24          "type": "ImportSpecifier",
25          "local": {
26            "type": "Identifier",
27            "name": "__memo_context_type",
28            "decorators": [],
29            "loc": {
30              "start": {
31                "line": 16,
32                "column": 10,
33                "program": "repeat.ets"
34              },
35              "end": {
36                "line": 16,
37                "column": 29,
38                "program": "repeat.ets"
39              }
40            }
41          },
42          "imported": {
43            "type": "Identifier",
44            "name": "__memo_context_type",
45            "decorators": [],
46            "loc": {
47              "start": {
48                "line": 16,
49                "column": 10,
50                "program": "repeat.ets"
51              },
52              "end": {
53                "line": 16,
54                "column": 29,
55                "program": "repeat.ets"
56              }
57            }
58          },
59          "loc": {
60            "start": {
61              "line": 16,
62              "column": 10,
63              "program": "repeat.ets"
64            },
65            "end": {
66              "line": 16,
67              "column": 29,
68              "program": "repeat.ets"
69            }
70          }
71        }
72      ],
73      "loc": {
74        "start": {
75          "line": 16,
76          "column": 1,
77          "program": "repeat.ets"
78        },
79        "end": {
80          "line": 16,
81          "column": 51,
82          "program": "repeat.ets"
83        }
84      }
85    },
86    {
87      "type": "ImportDeclaration",
88      "source": {
89        "type": "StringLiteral",
90        "value": "../import_tests/internals",
91        "loc": {
92          "start": {
93            "line": 17,
94            "column": 27,
95            "program": "repeat.ets"
96          },
97          "end": {
98            "line": 17,
99            "column": 54,
100            "program": "repeat.ets"
101          }
102        }
103      },
104      "specifiers": [
105        {
106          "type": "ImportSpecifier",
107          "local": {
108            "type": "Identifier",
109            "name": "__context",
110            "decorators": [],
111            "loc": {
112              "start": {
113                "line": 17,
114                "column": 10,
115                "program": "repeat.ets"
116              },
117              "end": {
118                "line": 17,
119                "column": 19,
120                "program": "repeat.ets"
121              }
122            }
123          },
124          "imported": {
125            "type": "Identifier",
126            "name": "__context",
127            "decorators": [],
128            "loc": {
129              "start": {
130                "line": 17,
131                "column": 10,
132                "program": "repeat.ets"
133              },
134              "end": {
135                "line": 17,
136                "column": 19,
137                "program": "repeat.ets"
138              }
139            }
140          },
141          "loc": {
142            "start": {
143              "line": 17,
144              "column": 10,
145              "program": "repeat.ets"
146            },
147            "end": {
148              "line": 17,
149              "column": 19,
150              "program": "repeat.ets"
151            }
152          }
153        }
154      ],
155      "loc": {
156        "start": {
157          "line": 17,
158          "column": 1,
159          "program": "repeat.ets"
160        },
161        "end": {
162          "line": 17,
163          "column": 55,
164          "program": "repeat.ets"
165        }
166      }
167    },
168    {
169      "type": "TSInterfaceDeclaration",
170      "body": {
171        "type": "TSInterfaceBody",
172        "body": [
173          {
174            "type": "MethodDefinition",
175            "key": {
176              "type": "Identifier",
177              "name": "name",
178              "decorators": [],
179              "loc": {
180                "start": {
181                  "line": 1,
182                  "column": 1,
183                  "program": null
184                },
185                "end": {
186                  "line": 1,
187                  "column": 1,
188                  "program": null
189                }
190              }
191            },
192            "kind": "get",
193            "accessibility": "public",
194            "static": false,
195            "optional": false,
196            "computed": false,
197            "value": {
198              "type": "FunctionExpression",
199              "function": {
200                "type": "ScriptFunction",
201                "id": {
202                  "type": "Identifier",
203                  "name": "name",
204                  "decorators": [],
205                  "loc": {
206                    "start": {
207                      "line": 1,
208                      "column": 1,
209                      "program": null
210                    },
211                    "end": {
212                      "line": 1,
213                      "column": 1,
214                      "program": null
215                    }
216                  }
217                },
218                "generator": false,
219                "async": false,
220                "expression": false,
221                "params": [],
222                "returnType": {
223                  "type": "ETSTypeReference",
224                  "part": {
225                    "type": "ETSTypeReferencePart",
226                    "name": {
227                      "type": "Identifier",
228                      "name": "string",
229                      "decorators": [],
230                      "loc": {
231                        "start": {
232                          "line": 20,
233                          "column": 12,
234                          "program": "repeat.ets"
235                        },
236                        "end": {
237                          "line": 20,
238                          "column": 18,
239                          "program": "repeat.ets"
240                        }
241                      }
242                    },
243                    "loc": {
244                      "start": {
245                        "line": 20,
246                        "column": 12,
247                        "program": "repeat.ets"
248                      },
249                      "end": {
250                        "line": 20,
251                        "column": 19,
252                        "program": "repeat.ets"
253                      }
254                    }
255                  },
256                  "loc": {
257                    "start": {
258                      "line": 20,
259                      "column": 12,
260                      "program": "repeat.ets"
261                    },
262                    "end": {
263                      "line": 20,
264                      "column": 19,
265                      "program": "repeat.ets"
266                    }
267                  }
268                },
269                "loc": {
270                  "start": {
271                    "line": 20,
272                    "column": 5,
273                    "program": "repeat.ets"
274                  },
275                  "end": {
276                    "line": 20,
277                    "column": 19,
278                    "program": "repeat.ets"
279                  }
280                }
281              },
282              "loc": {
283                "start": {
284                  "line": 20,
285                  "column": 5,
286                  "program": "repeat.ets"
287                },
288                "end": {
289                  "line": 20,
290                  "column": 19,
291                  "program": "repeat.ets"
292                }
293              }
294            },
295            "overloads": [
296              {
297                "type": "MethodDefinition",
298                "key": {
299                  "type": "Identifier",
300                  "name": "name",
301                  "decorators": [],
302                  "loc": {
303                    "start": {
304                      "line": 1,
305                      "column": 1,
306                      "program": null
307                    },
308                    "end": {
309                      "line": 1,
310                      "column": 1,
311                      "program": null
312                    }
313                  }
314                },
315                "kind": "set",
316                "accessibility": "public",
317                "static": false,
318                "optional": false,
319                "computed": false,
320                "value": {
321                  "type": "FunctionExpression",
322                  "function": {
323                    "type": "ScriptFunction",
324                    "id": {
325                      "type": "Identifier",
326                      "name": "name",
327                      "decorators": [],
328                      "loc": {
329                        "start": {
330                          "line": 1,
331                          "column": 1,
332                          "program": null
333                        },
334                        "end": {
335                          "line": 1,
336                          "column": 1,
337                          "program": null
338                        }
339                      }
340                    },
341                    "generator": false,
342                    "async": false,
343                    "expression": false,
344                    "params": [
345                      {
346                        "type": "ETSParameterExpression",
347                        "name": {
348                          "type": "Identifier",
349                          "name": "name",
350                          "typeAnnotation": {
351                            "type": "ETSTypeReference",
352                            "part": {
353                              "type": "ETSTypeReferencePart",
354                              "name": {
355                                "type": "Identifier",
356                                "name": "string",
357                                "decorators": [],
358                                "loc": {
359                                  "start": {
360                                    "line": 20,
361                                    "column": 12,
362                                    "program": "repeat.ets"
363                                  },
364                                  "end": {
365                                    "line": 20,
366                                    "column": 18,
367                                    "program": "repeat.ets"
368                                  }
369                                }
370                              },
371                              "loc": {
372                                "start": {
373                                  "line": 20,
374                                  "column": 12,
375                                  "program": "repeat.ets"
376                                },
377                                "end": {
378                                  "line": 20,
379                                  "column": 19,
380                                  "program": "repeat.ets"
381                                }
382                              }
383                            },
384                            "loc": {
385                              "start": {
386                                "line": 20,
387                                "column": 12,
388                                "program": "repeat.ets"
389                              },
390                              "end": {
391                                "line": 20,
392                                "column": 19,
393                                "program": "repeat.ets"
394                              }
395                            }
396                          },
397                          "decorators": [],
398                          "loc": {
399                            "start": {
400                              "line": 20,
401                              "column": 5,
402                              "program": "repeat.ets"
403                            },
404                            "end": {
405                              "line": 20,
406                              "column": 9,
407                              "program": "repeat.ets"
408                            }
409                          }
410                        },
411                        "loc": {
412                          "start": {
413                            "line": 20,
414                            "column": 5,
415                            "program": "repeat.ets"
416                          },
417                          "end": {
418                            "line": 20,
419                            "column": 9,
420                            "program": "repeat.ets"
421                          }
422                        }
423                      }
424                    ],
425                    "loc": {
426                      "start": {
427                        "line": 20,
428                        "column": 5,
429                        "program": "repeat.ets"
430                      },
431                      "end": {
432                        "line": 20,
433                        "column": 19,
434                        "program": "repeat.ets"
435                      }
436                    }
437                  },
438                  "loc": {
439                    "start": {
440                      "line": 20,
441                      "column": 5,
442                      "program": "repeat.ets"
443                    },
444                    "end": {
445                      "line": 20,
446                      "column": 19,
447                      "program": "repeat.ets"
448                    }
449                  }
450                },
451                "overloads": [],
452                "decorators": [],
453                "loc": {
454                  "start": {
455                    "line": 20,
456                    "column": 5,
457                    "program": "repeat.ets"
458                  },
459                  "end": {
460                    "line": 20,
461                    "column": 19,
462                    "program": "repeat.ets"
463                  }
464                }
465              }
466            ],
467            "decorators": [],
468            "loc": {
469              "start": {
470                "line": 20,
471                "column": 5,
472                "program": "repeat.ets"
473              },
474              "end": {
475                "line": 20,
476                "column": 19,
477                "program": "repeat.ets"
478              }
479            }
480          }
481        ],
482        "loc": {
483          "start": {
484            "line": 19,
485            "column": 16,
486            "program": "repeat.ets"
487          },
488          "end": {
489            "line": 21,
490            "column": 2,
491            "program": "repeat.ets"
492          }
493        }
494      },
495      "id": {
496        "type": "Identifier",
497        "name": "Test",
498        "decorators": [],
499        "loc": {
500          "start": {
501            "line": 19,
502            "column": 11,
503            "program": "repeat.ets"
504          },
505          "end": {
506            "line": 19,
507            "column": 15,
508            "program": "repeat.ets"
509          }
510        }
511      },
512      "extends": [],
513      "loc": {
514        "start": {
515          "line": 19,
516          "column": 1,
517          "program": "repeat.ets"
518        },
519        "end": {
520          "line": 22,
521          "column": 1,
522          "program": "repeat.ets"
523        }
524      }
525    },
526    {
527      "type": "ClassDeclaration",
528      "definition": {
529        "id": {
530          "type": "Identifier",
531          "name": "ETSGLOBAL",
532          "decorators": [],
533          "loc": {
534            "start": {
535              "line": 1,
536              "column": 1,
537              "program": "repeat.ets"
538            },
539            "end": {
540              "line": 1,
541              "column": 1,
542              "program": "repeat.ets"
543            }
544          }
545        },
546        "superClass": null,
547        "implements": [],
548        "body": [
549          {
550            "type": "MethodDefinition",
551            "key": {
552              "type": "Identifier",
553              "name": "main",
554              "decorators": [],
555              "loc": {
556                "start": {
557                  "line": 1,
558                  "column": 1,
559                  "program": null
560                },
561                "end": {
562                  "line": 1,
563                  "column": 1,
564                  "program": null
565                }
566              }
567            },
568            "kind": "method",
569            "accessibility": "public",
570            "static": true,
571            "optional": false,
572            "computed": false,
573            "value": {
574              "type": "FunctionExpression",
575              "function": {
576                "type": "ScriptFunction",
577                "id": {
578                  "type": "Identifier",
579                  "name": "main",
580                  "decorators": [],
581                  "loc": {
582                    "start": {
583                      "line": 1,
584                      "column": 1,
585                      "program": null
586                    },
587                    "end": {
588                      "line": 1,
589                      "column": 1,
590                      "program": null
591                    }
592                  }
593                },
594                "generator": false,
595                "async": false,
596                "expression": false,
597                "params": [],
598                "body": {
599                  "type": "BlockStatement",
600                  "statements": [],
601                  "loc": {
602                    "start": {
603                      "line": 1,
604                      "column": 1,
605                      "program": null
606                    },
607                    "end": {
608                      "line": 1,
609                      "column": 1,
610                      "program": null
611                    }
612                  }
613                },
614                "loc": {
615                  "start": {
616                    "line": 1,
617                    "column": 1,
618                    "program": null
619                  },
620                  "end": {
621                    "line": 1,
622                    "column": 1,
623                    "program": null
624                  }
625                }
626              },
627              "loc": {
628                "start": {
629                  "line": 1,
630                  "column": 1,
631                  "program": null
632                },
633                "end": {
634                  "line": 1,
635                  "column": 1,
636                  "program": null
637                }
638              }
639            },
640            "overloads": [],
641            "decorators": [],
642            "loc": {
643              "start": {
644                "line": 1,
645                "column": 1,
646                "program": "repeat.ets"
647              },
648              "end": {
649                "line": 1,
650                "column": 1,
651                "program": "repeat.ets"
652              }
653            }
654          },
655          {
656            "type": "MethodDefinition",
657            "key": {
658              "type": "Identifier",
659              "name": "_$init$_",
660              "decorators": [],
661              "loc": {
662                "start": {
663                  "line": 1,
664                  "column": 1,
665                  "program": null
666                },
667                "end": {
668                  "line": 1,
669                  "column": 1,
670                  "program": null
671                }
672              }
673            },
674            "kind": "method",
675            "accessibility": "public",
676            "static": true,
677            "optional": false,
678            "computed": false,
679            "value": {
680              "type": "FunctionExpression",
681              "function": {
682                "type": "ScriptFunction",
683                "id": {
684                  "type": "Identifier",
685                  "name": "_$init$_",
686                  "decorators": [],
687                  "loc": {
688                    "start": {
689                      "line": 1,
690                      "column": 1,
691                      "program": null
692                    },
693                    "end": {
694                      "line": 1,
695                      "column": 1,
696                      "program": null
697                    }
698                  }
699                },
700                "generator": false,
701                "async": false,
702                "expression": false,
703                "params": [],
704                "body": {
705                  "type": "BlockStatement",
706                  "statements": [],
707                  "loc": {
708                    "start": {
709                      "line": 1,
710                      "column": 1,
711                      "program": null
712                    },
713                    "end": {
714                      "line": 1,
715                      "column": 1,
716                      "program": null
717                    }
718                  }
719                },
720                "loc": {
721                  "start": {
722                    "line": 1,
723                    "column": 1,
724                    "program": null
725                  },
726                  "end": {
727                    "line": 1,
728                    "column": 1,
729                    "program": null
730                  }
731                }
732              },
733              "loc": {
734                "start": {
735                  "line": 1,
736                  "column": 1,
737                  "program": null
738                },
739                "end": {
740                  "line": 1,
741                  "column": 1,
742                  "program": null
743                }
744              }
745            },
746            "overloads": [],
747            "decorators": [],
748            "loc": {
749              "start": {
750                "line": 1,
751                "column": 1,
752                "program": "repeat.ets"
753              },
754              "end": {
755                "line": 1,
756                "column": 1,
757                "program": "repeat.ets"
758              }
759            }
760          }
761        ],
762        "loc": {
763          "start": {
764            "line": 1,
765            "column": 1,
766            "program": "repeat.ets"
767          },
768          "end": {
769            "line": 1,
770            "column": 1,
771            "program": "repeat.ets"
772          }
773        }
774      },
775      "loc": {
776        "start": {
777          "line": 1,
778          "column": 1,
779          "program": "repeat.ets"
780        },
781        "end": {
782          "line": 1,
783          "column": 1,
784          "program": "repeat.ets"
785        }
786      }
787    }
788  ],
789  "loc": {
790    "start": {
791      "line": 1,
792      "column": 1,
793      "program": "repeat.ets"
794    },
795    "end": {
796      "line": 22,
797      "column": 1,
798      "program": "repeat.ets"
799    }
800  }
801}
802