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