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