• 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": "Foo",
10          "decorators": [],
11          "loc": {
12            "start": {
13              "line": 17,
14              "column": 7
15            },
16            "end": {
17              "line": 17,
18              "column": 10
19            }
20          }
21        },
22        "superClass": null,
23        "implements": [],
24        "constructor": {
25          "type": "MethodDefinition",
26          "key": {
27            "type": "Identifier",
28            "name": "constructor",
29            "decorators": [],
30            "loc": {
31              "start": {
32                "line": 1,
33                "column": 1
34              },
35              "end": {
36                "line": 1,
37                "column": 1
38              }
39            }
40          },
41          "kind": "constructor",
42          "static": false,
43          "optional": false,
44          "computed": false,
45          "value": {
46            "type": "FunctionExpression",
47            "function": {
48              "type": "ScriptFunction",
49              "id": null,
50              "generator": false,
51              "async": false,
52              "expression": false,
53              "params": [],
54              "body": {
55                "type": "BlockStatement",
56                "statements": [],
57                "loc": {
58                  "start": {
59                    "line": 1,
60                    "column": 1
61                  },
62                  "end": {
63                    "line": 1,
64                    "column": 1
65                  }
66                }
67              },
68              "loc": {
69                "start": {
70                  "line": 1,
71                  "column": 1
72                },
73                "end": {
74                  "line": 1,
75                  "column": 1
76                }
77              }
78            },
79            "loc": {
80              "start": {
81                "line": 1,
82                "column": 1
83              },
84              "end": {
85                "line": 1,
86                "column": 1
87              }
88            }
89          },
90          "overloads": [],
91          "decorators": [],
92          "loc": {
93            "start": {
94              "line": 17,
95              "column": 1
96            },
97            "end": {
98              "line": 22,
99              "column": 2
100            }
101          }
102        },
103        "body": [
104          {
105            "type": "MethodDefinition",
106            "key": {
107              "type": "Identifier",
108              "name": "bar",
109              "decorators": [],
110              "loc": {
111                "start": {
112                  "line": 18,
113                  "column": 5
114                },
115                "end": {
116                  "line": 18,
117                  "column": 8
118                }
119              }
120            },
121            "kind": "method",
122            "static": false,
123            "optional": false,
124            "computed": false,
125            "value": {
126              "type": "FunctionExpression",
127              "function": {
128                "type": "ScriptFunction",
129                "id": null,
130                "generator": false,
131                "async": false,
132                "expression": false,
133                "params": [],
134                "loc": {
135                  "start": {
136                    "line": 18,
137                    "column": 8
138                  },
139                  "end": {
140                    "line": 18,
141                    "column": 11
142                  }
143                }
144              },
145              "loc": {
146                "start": {
147                  "line": 18,
148                  "column": 8
149                },
150                "end": {
151                  "line": 18,
152                  "column": 11
153                }
154              }
155            },
156            "overloads": [],
157            "decorators": [],
158            "loc": {
159              "start": {
160                "line": 18,
161                "column": 5
162              },
163              "end": {
164                "line": 18,
165                "column": 11
166              }
167            }
168          },
169          {
170            "type": "MethodDefinition",
171            "key": {
172              "type": "Identifier",
173              "name": "bar",
174              "decorators": [],
175              "loc": {
176                "start": {
177                  "line": 19,
178                  "column": 5
179                },
180                "end": {
181                  "line": 19,
182                  "column": 8
183                }
184              }
185            },
186            "kind": "method",
187            "static": false,
188            "optional": false,
189            "computed": false,
190            "value": {
191              "type": "FunctionExpression",
192              "function": {
193                "type": "ScriptFunction",
194                "id": null,
195                "generator": false,
196                "async": false,
197                "expression": false,
198                "params": [],
199                "body": {
200                  "type": "BlockStatement",
201                  "statements": [],
202                  "loc": {
203                    "start": {
204                      "line": 19,
205                      "column": 11
206                    },
207                    "end": {
208                      "line": 19,
209                      "column": 14
210                    }
211                  }
212                },
213                "loc": {
214                  "start": {
215                    "line": 19,
216                    "column": 8
217                  },
218                  "end": {
219                    "line": 19,
220                    "column": 14
221                  }
222                }
223              },
224              "loc": {
225                "start": {
226                  "line": 19,
227                  "column": 8
228                },
229                "end": {
230                  "line": 19,
231                  "column": 14
232                }
233              }
234            },
235            "overloads": [],
236            "decorators": [],
237            "loc": {
238              "start": {
239                "line": 19,
240                "column": 5
241              },
242              "end": {
243                "line": 19,
244                "column": 14
245              }
246            }
247          },
248          {
249            "type": "ClassProperty",
250            "key": {
251              "type": "Identifier",
252              "name": "baz",
253              "decorators": [],
254              "loc": {
255                "start": {
256                  "line": 20,
257                  "column": 5
258                },
259                "end": {
260                  "line": 20,
261                  "column": 8
262                }
263              }
264            },
265            "static": false,
266            "readonly": false,
267            "declare": false,
268            "optional": false,
269            "computed": false,
270            "typeAnnotation": {
271              "type": "TSStringKeyword",
272              "loc": {
273                "start": {
274                  "line": 20,
275                  "column": 10
276                },
277                "end": {
278                  "line": 20,
279                  "column": 16
280                }
281              }
282            },
283            "decorators": [],
284            "loc": {
285              "start": {
286                "line": 20,
287                "column": 5
288              },
289              "end": {
290                "line": 20,
291                "column": 8
292              }
293            }
294          },
295          {
296            "type": "MethodDefinition",
297            "key": {
298              "type": "Identifier",
299              "name": "bar",
300              "decorators": [],
301              "loc": {
302                "start": {
303                  "line": 21,
304                  "column": 5
305                },
306                "end": {
307                  "line": 21,
308                  "column": 8
309                }
310              }
311            },
312            "kind": "method",
313            "static": false,
314            "optional": false,
315            "computed": false,
316            "value": {
317              "type": "FunctionExpression",
318              "function": {
319                "type": "ScriptFunction",
320                "id": null,
321                "generator": false,
322                "async": false,
323                "expression": false,
324                "params": [],
325                "loc": {
326                  "start": {
327                    "line": 21,
328                    "column": 8
329                  },
330                  "end": {
331                    "line": 21,
332                    "column": 11
333                  }
334                }
335              },
336              "loc": {
337                "start": {
338                  "line": 21,
339                  "column": 8
340                },
341                "end": {
342                  "line": 21,
343                  "column": 11
344                }
345              }
346            },
347            "overloads": [],
348            "decorators": [],
349            "loc": {
350              "start": {
351                "line": 21,
352                "column": 5
353              },
354              "end": {
355                "line": 21,
356                "column": 11
357              }
358            }
359          }
360        ],
361        "indexSignatures": [],
362        "loc": {
363          "start": {
364            "line": 17,
365            "column": 11
366          },
367          "end": {
368            "line": 22,
369            "column": 2
370          }
371        }
372      },
373      "decorators": [],
374      "loc": {
375        "start": {
376          "line": 17,
377          "column": 1
378        },
379        "end": {
380          "line": 22,
381          "column": 2
382        }
383      }
384    }
385  ],
386  "loc": {
387    "start": {
388      "line": 1,
389      "column": 1
390    },
391    "end": {
392      "line": 22,
393      "column": 2
394    }
395  }
396}
397