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