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": 22
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": "x",
188                            "typeAnnotation": {
189                              "type": "ETSPrimitiveType",
190                              "loc": {
191                                "start": {
192                                  "line": 17,
193                                  "column": 12
194                                },
195                                "end": {
196                                  "line": 17,
197                                  "column": 15
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": "NumberLiteral",
215                            "value": 10,
216                            "loc": {
217                              "start": {
218                                "line": 17,
219                                "column": 18
220                              },
221                              "end": {
222                                "line": 17,
223                                "column": 20
224                              }
225                            }
226                          },
227                          "loc": {
228                            "start": {
229                              "line": 17,
230                              "column": 9
231                            },
232                            "end": {
233                              "line": 17,
234                              "column": 20
235                            }
236                          }
237                        }
238                      ],
239                      "kind": "let",
240                      "loc": {
241                        "start": {
242                          "line": 17,
243                          "column": 5
244                        },
245                        "end": {
246                          "line": 17,
247                          "column": 21
248                        }
249                      }
250                    },
251                    {
252                      "type": "VariableDeclaration",
253                      "declarations": [
254                        {
255                          "type": "VariableDeclarator",
256                          "id": {
257                            "type": "Identifier",
258                            "name": "y",
259                            "typeAnnotation": {
260                              "type": "ETSFunctionType",
261                              "params": [],
262                              "returnType": {
263                                "type": "ETSPrimitiveType",
264                                "loc": {
265                                  "start": {
266                                    "line": 18,
267                                    "column": 18
268                                  },
269                                  "end": {
270                                    "line": 18,
271                                    "column": 21
272                                  }
273                                }
274                              },
275                              "loc": {
276                                "start": {
277                                  "line": 18,
278                                  "column": 12
279                                },
280                                "end": {
281                                  "line": 18,
282                                  "column": 21
283                                }
284                              }
285                            },
286                            "decorators": [],
287                            "loc": {
288                              "start": {
289                                "line": 18,
290                                "column": 9
291                              },
292                              "end": {
293                                "line": 18,
294                                "column": 10
295                              }
296                            }
297                          },
298                          "init": {
299                            "type": "ArrowFunctionExpression",
300                            "function": {
301                              "type": "ScriptFunction",
302                              "id": null,
303                              "generator": false,
304                              "async": false,
305                              "expression": true,
306                              "params": [],
307                              "returnType": {
308                                "type": "ETSPrimitiveType",
309                                "loc": {
310                                  "start": {
311                                    "line": 18,
312                                    "column": 28
313                                  },
314                                  "end": {
315                                    "line": 18,
316                                    "column": 31
317                                  }
318                                }
319                              },
320                              "body": {
321                                "type": "BlockStatement",
322                                "statements": [
323                                  {
324                                    "type": "ReturnStatement",
325                                    "argument": {
326                                      "type": "Identifier",
327                                      "name": "x",
328                                      "decorators": [],
329                                      "loc": {
330                                        "start": {
331                                          "line": 18,
332                                          "column": 35
333                                        },
334                                        "end": {
335                                          "line": 18,
336                                          "column": 36
337                                        }
338                                      }
339                                    },
340                                    "loc": {
341                                      "start": {
342                                        "line": 1,
343                                        "column": 1
344                                      },
345                                      "end": {
346                                        "line": 1,
347                                        "column": 1
348                                      }
349                                    }
350                                  }
351                                ],
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": 18,
366                                  "column": 24
367                                },
368                                "end": {
369                                  "line": 18,
370                                  "column": 36
371                                }
372                              }
373                            },
374                            "loc": {
375                              "start": {
376                                "line": 18,
377                                "column": 24
378                              },
379                              "end": {
380                                "line": 18,
381                                "column": 36
382                              }
383                            }
384                          },
385                          "loc": {
386                            "start": {
387                              "line": 18,
388                              "column": 9
389                            },
390                            "end": {
391                              "line": 18,
392                              "column": 36
393                            }
394                          }
395                        }
396                      ],
397                      "kind": "let",
398                      "loc": {
399                        "start": {
400                          "line": 18,
401                          "column": 5
402                        },
403                        "end": {
404                          "line": 18,
405                          "column": 37
406                        }
407                      }
408                    },
409                    {
410                      "type": "ExpressionStatement",
411                      "expression": {
412                        "type": "CallExpression",
413                        "callee": {
414                          "type": "MemberExpression",
415                          "object": {
416                            "type": "Identifier",
417                            "name": "console",
418                            "decorators": [],
419                            "loc": {
420                              "start": {
421                                "line": 19,
422                                "column": 5
423                              },
424                              "end": {
425                                "line": 19,
426                                "column": 12
427                              }
428                            }
429                          },
430                          "property": {
431                            "type": "Identifier",
432                            "name": "println",
433                            "decorators": [],
434                            "loc": {
435                              "start": {
436                                "line": 19,
437                                "column": 13
438                              },
439                              "end": {
440                                "line": 19,
441                                "column": 20
442                              }
443                            }
444                          },
445                          "computed": false,
446                          "optional": false,
447                          "loc": {
448                            "start": {
449                              "line": 19,
450                              "column": 5
451                            },
452                            "end": {
453                              "line": 19,
454                              "column": 20
455                            }
456                          }
457                        },
458                        "arguments": [
459                          {
460                            "type": "CallExpression",
461                            "callee": {
462                              "type": "Identifier",
463                              "name": "y",
464                              "decorators": [],
465                              "loc": {
466                                "start": {
467                                  "line": 19,
468                                  "column": 21
469                                },
470                                "end": {
471                                  "line": 19,
472                                  "column": 22
473                                }
474                              }
475                            },
476                            "arguments": [],
477                            "optional": false,
478                            "loc": {
479                              "start": {
480                                "line": 19,
481                                "column": 21
482                              },
483                              "end": {
484                                "line": 19,
485                                "column": 24
486                              }
487                            }
488                          }
489                        ],
490                        "optional": false,
491                        "loc": {
492                          "start": {
493                            "line": 19,
494                            "column": 5
495                          },
496                          "end": {
497                            "line": 19,
498                            "column": 25
499                          }
500                        }
501                      },
502                      "loc": {
503                        "start": {
504                          "line": 19,
505                          "column": 5
506                        },
507                        "end": {
508                          "line": 19,
509                          "column": 25
510                        }
511                      }
512                    }
513                  ],
514                  "loc": {
515                    "start": {
516                      "line": 16,
517                      "column": 23
518                    },
519                    "end": {
520                      "line": 20,
521                      "column": 2
522                    }
523                  }
524                },
525                "loc": {
526                  "start": {
527                    "line": 16,
528                    "column": 14
529                  },
530                  "end": {
531                    "line": 20,
532                    "column": 2
533                  }
534                }
535              },
536              "loc": {
537                "start": {
538                  "line": 16,
539                  "column": 14
540                },
541                "end": {
542                  "line": 20,
543                  "column": 2
544                }
545              }
546            },
547            "overloads": [],
548            "decorators": [],
549            "loc": {
550              "start": {
551                "line": 16,
552                "column": 1
553              },
554              "end": {
555                "line": 20,
556                "column": 2
557              }
558            }
559          }
560        ],
561        "loc": {
562          "start": {
563            "line": 1,
564            "column": 1
565          },
566          "end": {
567            "line": 1,
568            "column": 1
569          }
570        }
571      },
572      "loc": {
573        "start": {
574          "line": 1,
575          "column": 1
576        },
577        "end": {
578          "line": 1,
579          "column": 1
580        }
581      }
582    }
583  ],
584  "loc": {
585    "start": {
586      "line": 1,
587      "column": 1
588    },
589    "end": {
590      "line": 21,
591      "column": 1
592    }
593  }
594}
595