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