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