• 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            },
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": "test_void",
124              "decorators": [],
125              "loc": {
126                "start": {
127                  "line": 16,
128                  "column": 10
129                },
130                "end": {
131                  "line": 16,
132                  "column": 19
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": "test_void",
148                  "decorators": [],
149                  "loc": {
150                    "start": {
151                      "line": 16,
152                      "column": 10
153                    },
154                    "end": {
155                      "line": 16,
156                      "column": 19
157                    }
158                  }
159                },
160                "generator": false,
161                "async": false,
162                "expression": false,
163                "params": [],
164                "returnType": {
165                  "type": "ETSTypeReference",
166                  "part": {
167                    "type": "ETSTypeReferencePart",
168                    "name": {
169                      "type": "Identifier",
170                      "name": "void",
171                      "decorators": [],
172                      "loc": {
173                        "start": {
174                          "line": 16,
175                          "column": 23
176                        },
177                        "end": {
178                          "line": 16,
179                          "column": 27
180                        }
181                      }
182                    },
183                    "loc": {
184                      "start": {
185                        "line": 16,
186                        "column": 23
187                      },
188                      "end": {
189                        "line": 16,
190                        "column": 29
191                      }
192                    }
193                  },
194                  "loc": {
195                    "start": {
196                      "line": 16,
197                      "column": 23
198                    },
199                    "end": {
200                      "line": 16,
201                      "column": 29
202                    }
203                  }
204                },
205                "body": {
206                  "type": "BlockStatement",
207                  "statements": [],
208                  "loc": {
209                    "start": {
210                      "line": 16,
211                      "column": 28
212                    },
213                    "end": {
214                      "line": 16,
215                      "column": 30
216                    }
217                  }
218                },
219                "loc": {
220                  "start": {
221                    "line": 16,
222                    "column": 19
223                  },
224                  "end": {
225                    "line": 16,
226                    "column": 30
227                  }
228                }
229              },
230              "loc": {
231                "start": {
232                  "line": 16,
233                  "column": 19
234                },
235                "end": {
236                  "line": 16,
237                  "column": 30
238                }
239              }
240            },
241            "overloads": [],
242            "decorators": [],
243            "loc": {
244              "start": {
245                "line": 16,
246                "column": 1
247              },
248              "end": {
249                "line": 16,
250                "column": 30
251              }
252            }
253          },
254          {
255            "type": "MethodDefinition",
256            "key": {
257              "type": "Identifier",
258              "name": "main",
259              "decorators": [],
260              "loc": {
261                "start": {
262                  "line": 18,
263                  "column": 10
264                },
265                "end": {
266                  "line": 18,
267                  "column": 14
268                }
269              }
270            },
271            "kind": "method",
272            "accessibility": "public",
273            "static": true,
274            "optional": false,
275            "computed": false,
276            "value": {
277              "type": "FunctionExpression",
278              "function": {
279                "type": "ScriptFunction",
280                "id": {
281                  "type": "Identifier",
282                  "name": "main",
283                  "decorators": [],
284                  "loc": {
285                    "start": {
286                      "line": 18,
287                      "column": 10
288                    },
289                    "end": {
290                      "line": 18,
291                      "column": 14
292                    }
293                  }
294                },
295                "generator": false,
296                "async": false,
297                "expression": false,
298                "params": [],
299                "returnType": {
300                  "type": "ETSTypeReference",
301                  "part": {
302                    "type": "ETSTypeReferencePart",
303                    "name": {
304                      "type": "Identifier",
305                      "name": "void",
306                      "decorators": [],
307                      "loc": {
308                        "start": {
309                          "line": 18,
310                          "column": 18
311                        },
312                        "end": {
313                          "line": 18,
314                          "column": 22
315                        }
316                      }
317                    },
318                    "loc": {
319                      "start": {
320                        "line": 18,
321                        "column": 18
322                      },
323                      "end": {
324                        "line": 18,
325                        "column": 24
326                      }
327                    }
328                  },
329                  "loc": {
330                    "start": {
331                      "line": 18,
332                      "column": 18
333                    },
334                    "end": {
335                      "line": 18,
336                      "column": 24
337                    }
338                  }
339                },
340                "body": {
341                  "type": "BlockStatement",
342                  "statements": [
343                    {
344                      "type": "VariableDeclaration",
345                      "declarations": [
346                        {
347                          "type": "VariableDeclarator",
348                          "id": {
349                            "type": "Identifier",
350                            "name": "test1",
351                            "typeAnnotation": {
352                              "type": "ETSFunctionType",
353                              "params": [],
354                              "returnType": {
355                                "type": "ETSTypeReference",
356                                "part": {
357                                  "type": "ETSTypeReferencePart",
358                                  "name": {
359                                    "type": "Identifier",
360                                    "name": "void",
361                                    "decorators": [],
362                                    "loc": {
363                                      "start": {
364                                        "line": 19,
365                                        "column": 22
366                                      },
367                                      "end": {
368                                        "line": 19,
369                                        "column": 26
370                                      }
371                                    }
372                                  },
373                                  "loc": {
374                                    "start": {
375                                      "line": 19,
376                                      "column": 22
377                                    },
378                                    "end": {
379                                      "line": 19,
380                                      "column": 28
381                                    }
382                                  }
383                                },
384                                "loc": {
385                                  "start": {
386                                    "line": 19,
387                                    "column": 22
388                                  },
389                                  "end": {
390                                    "line": 19,
391                                    "column": 28
392                                  }
393                                }
394                              },
395                              "loc": {
396                                "start": {
397                                  "line": 19,
398                                  "column": 16
399                                },
400                                "end": {
401                                  "line": 19,
402                                  "column": 28
403                                }
404                              }
405                            },
406                            "decorators": [],
407                            "loc": {
408                              "start": {
409                                "line": 19,
410                                "column": 9
411                              },
412                              "end": {
413                                "line": 19,
414                                "column": 14
415                              }
416                            }
417                          },
418                          "init": {
419                            "type": "ArrowFunctionExpression",
420                            "function": {
421                              "type": "ScriptFunction",
422                              "id": null,
423                              "generator": false,
424                              "async": false,
425                              "expression": true,
426                              "params": [],
427                              "returnType": {
428                                "type": "ETSTypeReference",
429                                "part": {
430                                  "type": "ETSTypeReferencePart",
431                                  "name": {
432                                    "type": "Identifier",
433                                    "name": "void",
434                                    "decorators": [],
435                                    "loc": {
436                                      "start": {
437                                        "line": 19,
438                                        "column": 33
439                                      },
440                                      "end": {
441                                        "line": 19,
442                                        "column": 37
443                                      }
444                                    }
445                                  },
446                                  "loc": {
447                                    "start": {
448                                      "line": 19,
449                                      "column": 33
450                                    },
451                                    "end": {
452                                      "line": 19,
453                                      "column": 40
454                                    }
455                                  }
456                                },
457                                "loc": {
458                                  "start": {
459                                    "line": 19,
460                                    "column": 33
461                                  },
462                                  "end": {
463                                    "line": 19,
464                                    "column": 40
465                                  }
466                                }
467                              },
468                              "body": {
469                                "type": "BlockStatement",
470                                "statements": [
471                                  {
472                                    "type": "ReturnStatement",
473                                    "argument": {
474                                      "type": "CallExpression",
475                                      "callee": {
476                                        "type": "Identifier",
477                                        "name": "test_void",
478                                        "decorators": [],
479                                        "loc": {
480                                          "start": {
481                                            "line": 19,
482                                            "column": 41
483                                          },
484                                          "end": {
485                                            "line": 19,
486                                            "column": 50
487                                          }
488                                        }
489                                      },
490                                      "arguments": [],
491                                      "optional": false,
492                                      "loc": {
493                                        "start": {
494                                          "line": 19,
495                                          "column": 41
496                                        },
497                                        "end": {
498                                          "line": 19,
499                                          "column": 52
500                                        }
501                                      }
502                                    },
503                                    "loc": {
504                                      "start": {
505                                        "line": 1,
506                                        "column": 1
507                                      },
508                                      "end": {
509                                        "line": 1,
510                                        "column": 1
511                                      }
512                                    }
513                                  }
514                                ],
515                                "loc": {
516                                  "start": {
517                                    "line": 1,
518                                    "column": 1
519                                  },
520                                  "end": {
521                                    "line": 1,
522                                    "column": 1
523                                  }
524                                }
525                              },
526                              "loc": {
527                                "start": {
528                                  "line": 19,
529                                  "column": 29
530                                },
531                                "end": {
532                                  "line": 19,
533                                  "column": 52
534                                }
535                              }
536                            },
537                            "loc": {
538                              "start": {
539                                "line": 19,
540                                "column": 29
541                              },
542                              "end": {
543                                "line": 19,
544                                "column": 52
545                              }
546                            }
547                          },
548                          "loc": {
549                            "start": {
550                              "line": 19,
551                              "column": 9
552                            },
553                            "end": {
554                              "line": 19,
555                              "column": 52
556                            }
557                          }
558                        }
559                      ],
560                      "kind": "let",
561                      "loc": {
562                        "start": {
563                          "line": 19,
564                          "column": 5
565                        },
566                        "end": {
567                          "line": 19,
568                          "column": 53
569                        }
570                      }
571                    },
572                    {
573                      "type": "ExpressionStatement",
574                      "expression": {
575                        "type": "CallExpression",
576                        "callee": {
577                          "type": "Identifier",
578                          "name": "test1",
579                          "decorators": [],
580                          "loc": {
581                            "start": {
582                              "line": 20,
583                              "column": 5
584                            },
585                            "end": {
586                              "line": 20,
587                              "column": 10
588                            }
589                          }
590                        },
591                        "arguments": [],
592                        "optional": false,
593                        "loc": {
594                          "start": {
595                            "line": 20,
596                            "column": 5
597                          },
598                          "end": {
599                            "line": 20,
600                            "column": 12
601                          }
602                        }
603                      },
604                      "loc": {
605                        "start": {
606                          "line": 20,
607                          "column": 5
608                        },
609                        "end": {
610                          "line": 20,
611                          "column": 13
612                        }
613                      }
614                    }
615                  ],
616                  "loc": {
617                    "start": {
618                      "line": 18,
619                      "column": 23
620                    },
621                    "end": {
622                      "line": 21,
623                      "column": 2
624                    }
625                  }
626                },
627                "loc": {
628                  "start": {
629                    "line": 18,
630                    "column": 14
631                  },
632                  "end": {
633                    "line": 21,
634                    "column": 2
635                  }
636                }
637              },
638              "loc": {
639                "start": {
640                  "line": 18,
641                  "column": 14
642                },
643                "end": {
644                  "line": 21,
645                  "column": 2
646                }
647              }
648            },
649            "overloads": [],
650            "decorators": [],
651            "loc": {
652              "start": {
653                "line": 18,
654                "column": 1
655              },
656              "end": {
657                "line": 21,
658                "column": 2
659              }
660            }
661          }
662        ],
663        "loc": {
664          "start": {
665            "line": 1,
666            "column": 1
667          },
668          "end": {
669            "line": 1,
670            "column": 1
671          }
672        }
673      },
674      "loc": {
675        "start": {
676          "line": 1,
677          "column": 1
678        },
679        "end": {
680          "line": 1,
681          "column": 1
682        }
683      }
684    }
685  ],
686  "loc": {
687    "start": {
688      "line": 1,
689      "column": 1
690    },
691    "end": {
692      "line": 22,
693      "column": 1
694    }
695  }
696}
697