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": "x",
188                            "decorators": [],
189                            "loc": {
190                              "start": {
191                                "line": 17,
192                                "column": 9
193                              },
194                              "end": {
195                                "line": 17,
196                                "column": 10
197                              }
198                            }
199                          },
200                          "init": {
201                            "type": "ETSNewClassInstanceExpression",
202                            "typeReference": {
203                              "type": "ETSTypeReference",
204                              "part": {
205                                "type": "ETSTypeReferencePart",
206                                "name": {
207                                  "type": "Identifier",
208                                  "name": "ArrayBuffer",
209                                  "decorators": [],
210                                  "loc": {
211                                    "start": {
212                                      "line": 17,
213                                      "column": 17
214                                    },
215                                    "end": {
216                                      "line": 17,
217                                      "column": 28
218                                    }
219                                  }
220                                },
221                                "loc": {
222                                  "start": {
223                                    "line": 17,
224                                    "column": 17
225                                  },
226                                  "end": {
227                                    "line": 17,
228                                    "column": 29
229                                  }
230                                }
231                              },
232                              "loc": {
233                                "start": {
234                                  "line": 17,
235                                  "column": 17
236                                },
237                                "end": {
238                                  "line": 17,
239                                  "column": 29
240                                }
241                              }
242                            },
243                            "arguments": [
244                              {
245                                "type": "NumberLiteral",
246                                "value": 5,
247                                "loc": {
248                                  "start": {
249                                    "line": 17,
250                                    "column": 29
251                                  },
252                                  "end": {
253                                    "line": 17,
254                                    "column": 30
255                                  }
256                                }
257                              }
258                            ],
259                            "loc": {
260                              "start": {
261                                "line": 17,
262                                "column": 13
263                              },
264                              "end": {
265                                "line": 17,
266                                "column": 32
267                              }
268                            }
269                          },
270                          "loc": {
271                            "start": {
272                              "line": 17,
273                              "column": 9
274                            },
275                            "end": {
276                              "line": 17,
277                              "column": 32
278                            }
279                          }
280                        }
281                      ],
282                      "kind": "let",
283                      "loc": {
284                        "start": {
285                          "line": 17,
286                          "column": 5
287                        },
288                        "end": {
289                          "line": 17,
290                          "column": 32
291                        }
292                      }
293                    },
294                    {
295                      "type": "ReturnStatement",
296                      "argument": {
297                        "type": "NumberLiteral",
298                        "value": 0,
299                        "loc": {
300                          "start": {
301                            "line": 18,
302                            "column": 12
303                          },
304                          "end": {
305                            "line": 18,
306                            "column": 13
307                          }
308                        }
309                      },
310                      "loc": {
311                        "start": {
312                          "line": 18,
313                          "column": 5
314                        },
315                        "end": {
316                          "line": 18,
317                          "column": 14
318                        }
319                      }
320                    }
321                  ],
322                  "loc": {
323                    "start": {
324                      "line": 16,
325                      "column": 22
326                    },
327                    "end": {
328                      "line": 19,
329                      "column": 2
330                    }
331                  }
332                },
333                "loc": {
334                  "start": {
335                    "line": 16,
336                    "column": 14
337                  },
338                  "end": {
339                    "line": 19,
340                    "column": 2
341                  }
342                }
343              },
344              "loc": {
345                "start": {
346                  "line": 16,
347                  "column": 14
348                },
349                "end": {
350                  "line": 19,
351                  "column": 2
352                }
353              }
354            },
355            "overloads": [],
356            "decorators": [],
357            "loc": {
358              "start": {
359                "line": 16,
360                "column": 1
361              },
362              "end": {
363                "line": 19,
364                "column": 2
365              }
366            }
367          }
368        ],
369        "loc": {
370          "start": {
371            "line": 1,
372            "column": 1
373          },
374          "end": {
375            "line": 1,
376            "column": 1
377          }
378        }
379      },
380      "loc": {
381        "start": {
382          "line": 1,
383          "column": 1
384        },
385        "end": {
386          "line": 1,
387          "column": 1
388        }
389      }
390    }
391  ],
392  "loc": {
393    "start": {
394      "line": 1,
395      "column": 1
396    },
397    "end": {
398      "line": 20,
399      "column": 1
400    }
401  }
402}
403