• 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": "foo",
14              "decorators": [],
15              "loc": {
16                "start": {
17                  "line": 17,
18                  "column": 3
19                },
20                "end": {
21                  "line": 17,
22                  "column": 6
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": "foo",
38                  "decorators": [],
39                  "loc": {
40                    "start": {
41                      "line": 17,
42                      "column": 3
43                    },
44                    "end": {
45                      "line": 17,
46                      "column": 6
47                    }
48                  }
49                },
50                "generator": false,
51                "async": false,
52                "expression": false,
53                "params": [
54                  {
55                    "type": "ETSParameterExpression",
56                    "name": {
57                      "type": "Identifier",
58                      "name": "a",
59                      "typeAnnotation": {
60                        "type": "ETSUnionType",
61                        "types": [
62                          {
63                            "type": "ETSTypeReference",
64                            "part": {
65                              "type": "ETSTypeReferencePart",
66                              "name": {
67                                "type": "Identifier",
68                                "name": "Number",
69                                "decorators": [],
70                                "loc": {
71                                  "start": {
72                                    "line": 17,
73                                    "column": 11
74                                  },
75                                  "end": {
76                                    "line": 17,
77                                    "column": 17
78                                  }
79                                }
80                              },
81                              "loc": {
82                                "start": {
83                                  "line": 17,
84                                  "column": 11
85                                },
86                                "end": {
87                                  "line": 17,
88                                  "column": 18
89                                }
90                              }
91                            },
92                            "loc": {
93                              "start": {
94                                "line": 17,
95                                "column": 11
96                              },
97                              "end": {
98                                "line": 17,
99                                "column": 18
100                              }
101                            }
102                          },
103                          {
104                            "type": "ETSUndefinedType",
105                            "loc": {
106                              "start": {
107                                "line": 17,
108                                "column": 8
109                              },
110                              "end": {
111                                "line": 17,
112                                "column": 9
113                              }
114                            }
115                          }
116                        ],
117                        "loc": {
118                          "start": {
119                            "line": 17,
120                            "column": 11
121                          },
122                          "end": {
123                            "line": 17,
124                            "column": 18
125                          }
126                        }
127                      },
128                      "decorators": [],
129                      "loc": {
130                        "start": {
131                          "line": 17,
132                          "column": 7
133                        },
134                        "end": {
135                          "line": 17,
136                          "column": 18
137                        }
138                      }
139                    },
140                    "loc": {
141                      "start": {
142                        "line": 17,
143                        "column": 7
144                      },
145                      "end": {
146                        "line": 17,
147                        "column": 18
148                      }
149                    }
150                  }
151                ],
152                "body": {
153                  "type": "BlockStatement",
154                  "statements": [],
155                  "loc": {
156                    "start": {
157                      "line": 17,
158                      "column": 18
159                    },
160                    "end": {
161                      "line": 17,
162                      "column": 20
163                    }
164                  }
165                },
166                "loc": {
167                  "start": {
168                    "line": 17,
169                    "column": 6
170                  },
171                  "end": {
172                    "line": 17,
173                    "column": 20
174                  }
175                }
176              },
177              "loc": {
178                "start": {
179                  "line": 17,
180                  "column": 6
181                },
182                "end": {
183                  "line": 17,
184                  "column": 20
185                }
186              }
187            },
188            "overloads": [
189              {
190                "type": "MethodDefinition",
191                "key": {
192                  "type": "Identifier",
193                  "name": "foo",
194                  "decorators": [],
195                  "loc": {
196                    "start": {
197                      "line": 17,
198                      "column": 3
199                    },
200                    "end": {
201                      "line": 17,
202                      "column": 6
203                    }
204                  }
205                },
206                "kind": "method",
207                "accessibility": "public",
208                "static": false,
209                "optional": false,
210                "computed": false,
211                "value": {
212                  "type": "FunctionExpression",
213                  "function": {
214                    "type": "ScriptFunction",
215                    "id": {
216                      "type": "Identifier",
217                      "name": "foo",
218                      "decorators": [],
219                      "loc": {
220                        "start": {
221                          "line": 17,
222                          "column": 3
223                        },
224                        "end": {
225                          "line": 17,
226                          "column": 6
227                        }
228                      }
229                    },
230                    "generator": false,
231                    "async": false,
232                    "expression": false,
233                    "params": [],
234                    "body": {
235                      "type": "BlockStatement",
236                      "statements": [],
237                      "loc": {
238                        "start": {
239                          "line": 1,
240                          "column": 1
241                        },
242                        "end": {
243                          "line": 1,
244                          "column": 1
245                        }
246                      }
247                    },
248                    "loc": {
249                      "start": {
250                        "line": 622,
251                        "column": 1
252                      },
253                      "end": {
254                        "line": 622,
255                        "column": 1
256                      }
257                    }
258                  },
259                  "loc": {
260                    "start": {
261                      "line": 1,
262                      "column": 1
263                    },
264                    "end": {
265                      "line": 1,
266                      "column": 1
267                    }
268                  }
269                },
270                "overloads": [],
271                "decorators": [],
272                "loc": {
273                  "start": {
274                    "line": 17,
275                    "column": 3
276                  },
277                  "end": {
278                    "line": 1,
279                    "column": 1
280                  }
281                }
282              }
283            ],
284            "decorators": [],
285            "loc": {
286              "start": {
287                "line": 17,
288                "column": 3
289              },
290              "end": {
291                "line": 17,
292                "column": 20
293              }
294            }
295          }
296        ],
297        "loc": {
298          "start": {
299            "line": 16,
300            "column": 13
301          },
302          "end": {
303            "line": 18,
304            "column": 2
305          }
306        }
307      },
308      "id": {
309        "type": "Identifier",
310        "name": "A",
311        "decorators": [],
312        "loc": {
313          "start": {
314            "line": 16,
315            "column": 11
316          },
317          "end": {
318            "line": 16,
319            "column": 12
320          }
321        }
322      },
323      "extends": [],
324      "loc": {
325        "start": {
326          "line": 16,
327          "column": 1
328        },
329        "end": {
330          "line": 19,
331          "column": 1
332        }
333      }
334    },
335    {
336      "type": "ClassDeclaration",
337      "definition": {
338        "id": {
339          "type": "Identifier",
340          "name": "ETSGLOBAL",
341          "decorators": [],
342          "loc": {
343            "start": {
344              "line": 1,
345              "column": 1
346            },
347            "end": {
348              "line": 1,
349              "column": 1
350            }
351          }
352        },
353        "superClass": null,
354        "implements": [],
355        "body": [
356          {
357            "type": "MethodDefinition",
358            "key": {
359              "type": "Identifier",
360              "name": "_$init$_",
361              "decorators": [],
362              "loc": {
363                "start": {
364                  "line": 1,
365                  "column": 1
366                },
367                "end": {
368                  "line": 1,
369                  "column": 1
370                }
371              }
372            },
373            "kind": "method",
374            "accessibility": "public",
375            "static": true,
376            "optional": false,
377            "computed": false,
378            "value": {
379              "type": "FunctionExpression",
380              "function": {
381                "type": "ScriptFunction",
382                "id": {
383                  "type": "Identifier",
384                  "name": "_$init$_",
385                  "decorators": [],
386                  "loc": {
387                    "start": {
388                      "line": 1,
389                      "column": 1
390                    },
391                    "end": {
392                      "line": 1,
393                      "column": 1
394                    }
395                  }
396                },
397                "generator": false,
398                "async": false,
399                "expression": false,
400                "params": [],
401                "body": {
402                  "type": "BlockStatement",
403                  "statements": [],
404                  "loc": {
405                    "start": {
406                      "line": 1,
407                      "column": 1
408                    },
409                    "end": {
410                      "line": 1,
411                      "column": 1
412                    }
413                  }
414                },
415                "loc": {
416                  "start": {
417                    "line": 1,
418                    "column": 1
419                  },
420                  "end": {
421                    "line": 1,
422                    "column": 1
423                  }
424                }
425              },
426              "loc": {
427                "start": {
428                  "line": 1,
429                  "column": 1
430                },
431                "end": {
432                  "line": 1,
433                  "column": 1
434                }
435              }
436            },
437            "overloads": [],
438            "decorators": [],
439            "loc": {
440              "start": {
441                "line": 1,
442                "column": 1
443              },
444              "end": {
445                "line": 1,
446                "column": 1
447              }
448            }
449          }
450        ],
451        "loc": {
452          "start": {
453            "line": 1,
454            "column": 1
455          },
456          "end": {
457            "line": 1,
458            "column": 1
459          }
460        }
461      },
462      "loc": {
463        "start": {
464          "line": 1,
465          "column": 1
466        },
467        "end": {
468          "line": 1,
469          "column": 1
470        }
471      }
472    }
473  ],
474  "loc": {
475    "start": {
476      "line": 1,
477      "column": 1
478    },
479    "end": {
480      "line": 19,
481      "column": 1
482    }
483  }
484}
485