• 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": "foo",
10          "decorators": [],
11          "loc": {
12            "start": {
13              "line": 20,
14              "column": 7,
15              "program": "main_entry_point_7.ets"
16            },
17            "end": {
18              "line": 20,
19              "column": 10,
20              "program": "main_entry_point_7.ets"
21            }
22          }
23        },
24        "superClass": null,
25        "implements": [],
26        "body": [
27          {
28            "type": "MethodDefinition",
29            "key": {
30              "type": "Identifier",
31              "name": "main",
32              "decorators": [],
33              "loc": {
34                "start": {
35                  "line": 21,
36                  "column": 5,
37                  "program": "main_entry_point_7.ets"
38                },
39                "end": {
40                  "line": 21,
41                  "column": 9,
42                  "program": "main_entry_point_7.ets"
43                }
44              }
45            },
46            "kind": "method",
47            "accessibility": "public",
48            "static": false,
49            "optional": false,
50            "computed": false,
51            "value": {
52              "type": "FunctionExpression",
53              "function": {
54                "type": "ScriptFunction",
55                "id": {
56                  "type": "Identifier",
57                  "name": "main",
58                  "decorators": [],
59                  "loc": {
60                    "start": {
61                      "line": 21,
62                      "column": 5,
63                      "program": "main_entry_point_7.ets"
64                    },
65                    "end": {
66                      "line": 21,
67                      "column": 9,
68                      "program": "main_entry_point_7.ets"
69                    }
70                  }
71                },
72                "generator": false,
73                "async": false,
74                "expression": false,
75                "params": [],
76                "returnType": {
77                  "type": "ETSTypeReference",
78                  "part": {
79                    "type": "ETSTypeReferencePart",
80                    "name": {
81                      "type": "Identifier",
82                      "name": "string",
83                      "decorators": [],
84                      "loc": {
85                        "start": {
86                          "line": 21,
87                          "column": 13,
88                          "program": "main_entry_point_7.ets"
89                        },
90                        "end": {
91                          "line": 21,
92                          "column": 19,
93                          "program": "main_entry_point_7.ets"
94                        }
95                      }
96                    },
97                    "loc": {
98                      "start": {
99                        "line": 21,
100                        "column": 13,
101                        "program": "main_entry_point_7.ets"
102                      },
103                      "end": {
104                        "line": 21,
105                        "column": 21,
106                        "program": "main_entry_point_7.ets"
107                      }
108                    }
109                  },
110                  "loc": {
111                    "start": {
112                      "line": 21,
113                      "column": 13,
114                      "program": "main_entry_point_7.ets"
115                    },
116                    "end": {
117                      "line": 21,
118                      "column": 21,
119                      "program": "main_entry_point_7.ets"
120                    }
121                  }
122                },
123                "body": {
124                  "type": "BlockStatement",
125                  "statements": [
126                    {
127                      "type": "ReturnStatement",
128                      "argument": {
129                        "type": "StringLiteral",
130                        "value": "asd",
131                        "loc": {
132                          "start": {
133                            "line": 22,
134                            "column": 16,
135                            "program": "main_entry_point_7.ets"
136                          },
137                          "end": {
138                            "line": 22,
139                            "column": 21,
140                            "program": "main_entry_point_7.ets"
141                          }
142                        }
143                      },
144                      "loc": {
145                        "start": {
146                          "line": 22,
147                          "column": 9,
148                          "program": "main_entry_point_7.ets"
149                        },
150                        "end": {
151                          "line": 22,
152                          "column": 22,
153                          "program": "main_entry_point_7.ets"
154                        }
155                      }
156                    }
157                  ],
158                  "loc": {
159                    "start": {
160                      "line": 21,
161                      "column": 20,
162                      "program": "main_entry_point_7.ets"
163                    },
164                    "end": {
165                      "line": 23,
166                      "column": 6,
167                      "program": "main_entry_point_7.ets"
168                    }
169                  }
170                },
171                "loc": {
172                  "start": {
173                    "line": 21,
174                    "column": 9,
175                    "program": "main_entry_point_7.ets"
176                  },
177                  "end": {
178                    "line": 23,
179                    "column": 6,
180                    "program": "main_entry_point_7.ets"
181                  }
182                }
183              },
184              "loc": {
185                "start": {
186                  "line": 21,
187                  "column": 9,
188                  "program": "main_entry_point_7.ets"
189                },
190                "end": {
191                  "line": 23,
192                  "column": 6,
193                  "program": "main_entry_point_7.ets"
194                }
195              }
196            },
197            "overloads": [
198              {
199                "type": "MethodDefinition",
200                "key": {
201                  "type": "Identifier",
202                  "name": "main",
203                  "decorators": [],
204                  "loc": {
205                    "start": {
206                      "line": 25,
207                      "column": 5,
208                      "program": "main_entry_point_7.ets"
209                    },
210                    "end": {
211                      "line": 25,
212                      "column": 9,
213                      "program": "main_entry_point_7.ets"
214                    }
215                  }
216                },
217                "kind": "method",
218                "accessibility": "public",
219                "static": false,
220                "optional": false,
221                "computed": false,
222                "value": {
223                  "type": "FunctionExpression",
224                  "function": {
225                    "type": "ScriptFunction",
226                    "id": {
227                      "type": "Identifier",
228                      "name": "main",
229                      "decorators": [],
230                      "loc": {
231                        "start": {
232                          "line": 25,
233                          "column": 5,
234                          "program": "main_entry_point_7.ets"
235                        },
236                        "end": {
237                          "line": 25,
238                          "column": 9,
239                          "program": "main_entry_point_7.ets"
240                        }
241                      }
242                    },
243                    "generator": false,
244                    "async": false,
245                    "expression": false,
246                    "params": [
247                      {
248                        "type": "ETSParameterExpression",
249                        "name": {
250                          "type": "Identifier",
251                          "name": "a",
252                          "typeAnnotation": {
253                            "type": "ETSPrimitiveType",
254                            "loc": {
255                              "start": {
256                                "line": 25,
257                                "column": 12,
258                                "program": "main_entry_point_7.ets"
259                              },
260                              "end": {
261                                "line": 25,
262                                "column": 15,
263                                "program": "main_entry_point_7.ets"
264                              }
265                            }
266                          },
267                          "decorators": [],
268                          "loc": {
269                            "start": {
270                              "line": 25,
271                              "column": 10,
272                              "program": "main_entry_point_7.ets"
273                            },
274                            "end": {
275                              "line": 25,
276                              "column": 15,
277                              "program": "main_entry_point_7.ets"
278                            }
279                          }
280                        },
281                        "loc": {
282                          "start": {
283                            "line": 25,
284                            "column": 10,
285                            "program": "main_entry_point_7.ets"
286                          },
287                          "end": {
288                            "line": 25,
289                            "column": 15,
290                            "program": "main_entry_point_7.ets"
291                          }
292                        }
293                      }
294                    ],
295                    "returnType": {
296                      "type": "ETSPrimitiveType",
297                      "loc": {
298                        "start": {
299                          "line": 25,
300                          "column": 18,
301                          "program": "main_entry_point_7.ets"
302                        },
303                        "end": {
304                          "line": 25,
305                          "column": 21,
306                          "program": "main_entry_point_7.ets"
307                        }
308                      }
309                    },
310                    "body": {
311                      "type": "BlockStatement",
312                      "statements": [
313                        {
314                          "type": "ReturnStatement",
315                          "argument": {
316                            "type": "NumberLiteral",
317                            "value": 2,
318                            "loc": {
319                              "start": {
320                                "line": 26,
321                                "column": 16,
322                                "program": "main_entry_point_7.ets"
323                              },
324                              "end": {
325                                "line": 26,
326                                "column": 17,
327                                "program": "main_entry_point_7.ets"
328                              }
329                            }
330                          },
331                          "loc": {
332                            "start": {
333                              "line": 26,
334                              "column": 9,
335                              "program": "main_entry_point_7.ets"
336                            },
337                            "end": {
338                              "line": 26,
339                              "column": 18,
340                              "program": "main_entry_point_7.ets"
341                            }
342                          }
343                        }
344                      ],
345                      "loc": {
346                        "start": {
347                          "line": 25,
348                          "column": 22,
349                          "program": "main_entry_point_7.ets"
350                        },
351                        "end": {
352                          "line": 27,
353                          "column": 6,
354                          "program": "main_entry_point_7.ets"
355                        }
356                      }
357                    },
358                    "loc": {
359                      "start": {
360                        "line": 25,
361                        "column": 9,
362                        "program": "main_entry_point_7.ets"
363                      },
364                      "end": {
365                        "line": 27,
366                        "column": 6,
367                        "program": "main_entry_point_7.ets"
368                      }
369                    }
370                  },
371                  "loc": {
372                    "start": {
373                      "line": 25,
374                      "column": 9,
375                      "program": "main_entry_point_7.ets"
376                    },
377                    "end": {
378                      "line": 27,
379                      "column": 6,
380                      "program": "main_entry_point_7.ets"
381                    }
382                  }
383                },
384                "overloads": [],
385                "decorators": [],
386                "loc": {
387                  "start": {
388                    "line": 25,
389                    "column": 5,
390                    "program": "main_entry_point_7.ets"
391                  },
392                  "end": {
393                    "line": 27,
394                    "column": 6,
395                    "program": "main_entry_point_7.ets"
396                  }
397                }
398              }
399            ],
400            "decorators": [],
401            "loc": {
402              "start": {
403                "line": 21,
404                "column": 5,
405                "program": "main_entry_point_7.ets"
406              },
407              "end": {
408                "line": 23,
409                "column": 6,
410                "program": "main_entry_point_7.ets"
411              }
412            }
413          },
414          {
415            "type": "MethodDefinition",
416            "key": {
417              "type": "Identifier",
418              "name": "constructor",
419              "decorators": [],
420              "loc": {
421                "start": {
422                  "line": 20,
423                  "column": 11,
424                  "program": "main_entry_point_7.ets"
425                },
426                "end": {
427                  "line": 20,
428                  "column": 11,
429                  "program": "main_entry_point_7.ets"
430                }
431              }
432            },
433            "kind": "constructor",
434            "static": false,
435            "optional": false,
436            "computed": false,
437            "value": {
438              "type": "FunctionExpression",
439              "function": {
440                "type": "ScriptFunction",
441                "id": {
442                  "type": "Identifier",
443                  "name": "constructor",
444                  "decorators": [],
445                  "loc": {
446                    "start": {
447                      "line": 20,
448                      "column": 11,
449                      "program": "main_entry_point_7.ets"
450                    },
451                    "end": {
452                      "line": 20,
453                      "column": 11,
454                      "program": "main_entry_point_7.ets"
455                    }
456                  }
457                },
458                "generator": false,
459                "async": false,
460                "expression": false,
461                "params": [],
462                "body": {
463                  "type": "BlockStatement",
464                  "statements": [],
465                  "loc": {
466                    "start": {
467                      "line": 20,
468                      "column": 11,
469                      "program": "main_entry_point_7.ets"
470                    },
471                    "end": {
472                      "line": 20,
473                      "column": 11,
474                      "program": "main_entry_point_7.ets"
475                    }
476                  }
477                },
478                "loc": {
479                  "start": {
480                    "line": 20,
481                    "column": 11,
482                    "program": "main_entry_point_7.ets"
483                  },
484                  "end": {
485                    "line": 20,
486                    "column": 11,
487                    "program": "main_entry_point_7.ets"
488                  }
489                }
490              },
491              "loc": {
492                "start": {
493                  "line": 20,
494                  "column": 11,
495                  "program": "main_entry_point_7.ets"
496                },
497                "end": {
498                  "line": 20,
499                  "column": 11,
500                  "program": "main_entry_point_7.ets"
501                }
502              }
503            },
504            "overloads": [],
505            "decorators": [],
506            "loc": {
507              "start": {
508                "line": 1,
509                "column": 1,
510                "program": null
511              },
512              "end": {
513                "line": 1,
514                "column": 1,
515                "program": null
516              }
517            }
518          }
519        ],
520        "loc": {
521          "start": {
522            "line": 20,
523            "column": 10,
524            "program": "main_entry_point_7.ets"
525          },
526          "end": {
527            "line": 29,
528            "column": 1,
529            "program": "main_entry_point_7.ets"
530          }
531        }
532      },
533      "loc": {
534        "start": {
535          "line": 20,
536          "column": 1,
537          "program": "main_entry_point_7.ets"
538        },
539        "end": {
540          "line": 29,
541          "column": 1,
542          "program": "main_entry_point_7.ets"
543        }
544      }
545    },
546    {
547      "type": "ClassDeclaration",
548      "definition": {
549        "id": {
550          "type": "Identifier",
551          "name": "ETSGLOBAL",
552          "decorators": [],
553          "loc": {
554            "start": {
555              "line": 1,
556              "column": 1,
557              "program": "main_entry_point_7.ets"
558            },
559            "end": {
560              "line": 1,
561              "column": 1,
562              "program": "main_entry_point_7.ets"
563            }
564          }
565        },
566        "superClass": null,
567        "implements": [],
568        "body": [
569          {
570            "type": "MethodDefinition",
571            "key": {
572              "type": "Identifier",
573              "name": "_$init$_",
574              "decorators": [],
575              "loc": {
576                "start": {
577                  "line": 1,
578                  "column": 1,
579                  "program": null
580                },
581                "end": {
582                  "line": 1,
583                  "column": 1,
584                  "program": null
585                }
586              }
587            },
588            "kind": "method",
589            "accessibility": "public",
590            "static": true,
591            "optional": false,
592            "computed": false,
593            "value": {
594              "type": "FunctionExpression",
595              "function": {
596                "type": "ScriptFunction",
597                "id": {
598                  "type": "Identifier",
599                  "name": "_$init$_",
600                  "decorators": [],
601                  "loc": {
602                    "start": {
603                      "line": 1,
604                      "column": 1,
605                      "program": null
606                    },
607                    "end": {
608                      "line": 1,
609                      "column": 1,
610                      "program": null
611                    }
612                  }
613                },
614                "generator": false,
615                "async": false,
616                "expression": false,
617                "params": [],
618                "body": {
619                  "type": "BlockStatement",
620                  "statements": [],
621                  "loc": {
622                    "start": {
623                      "line": 1,
624                      "column": 1,
625                      "program": null
626                    },
627                    "end": {
628                      "line": 1,
629                      "column": 1,
630                      "program": null
631                    }
632                  }
633                },
634                "loc": {
635                  "start": {
636                    "line": 1,
637                    "column": 1,
638                    "program": null
639                  },
640                  "end": {
641                    "line": 1,
642                    "column": 1,
643                    "program": null
644                  }
645                }
646              },
647              "loc": {
648                "start": {
649                  "line": 1,
650                  "column": 1,
651                  "program": null
652                },
653                "end": {
654                  "line": 1,
655                  "column": 1,
656                  "program": null
657                }
658              }
659            },
660            "overloads": [],
661            "decorators": [],
662            "loc": {
663              "start": {
664                "line": 1,
665                "column": 1,
666                "program": "main_entry_point_7.ets"
667              },
668              "end": {
669                "line": 1,
670                "column": 1,
671                "program": "main_entry_point_7.ets"
672              }
673            }
674          },
675          {
676            "type": "MethodDefinition",
677            "key": {
678              "type": "Identifier",
679              "name": "main",
680              "decorators": [],
681              "loc": {
682                "start": {
683                  "line": 16,
684                  "column": 10,
685                  "program": "main_entry_point_7.ets"
686                },
687                "end": {
688                  "line": 16,
689                  "column": 14,
690                  "program": "main_entry_point_7.ets"
691                }
692              }
693            },
694            "kind": "method",
695            "accessibility": "public",
696            "static": true,
697            "optional": false,
698            "computed": false,
699            "value": {
700              "type": "FunctionExpression",
701              "function": {
702                "type": "ScriptFunction",
703                "id": {
704                  "type": "Identifier",
705                  "name": "main",
706                  "decorators": [],
707                  "loc": {
708                    "start": {
709                      "line": 16,
710                      "column": 10,
711                      "program": "main_entry_point_7.ets"
712                    },
713                    "end": {
714                      "line": 16,
715                      "column": 14,
716                      "program": "main_entry_point_7.ets"
717                    }
718                  }
719                },
720                "generator": false,
721                "async": false,
722                "expression": false,
723                "params": [],
724                "returnType": {
725                  "type": "ETSPrimitiveType",
726                  "loc": {
727                    "start": {
728                      "line": 16,
729                      "column": 18,
730                      "program": "main_entry_point_7.ets"
731                    },
732                    "end": {
733                      "line": 16,
734                      "column": 22,
735                      "program": "main_entry_point_7.ets"
736                    }
737                  }
738                },
739                "body": {
740                  "type": "BlockStatement",
741                  "statements": [
742                    {
743                      "type": "ReturnStatement",
744                      "argument": null,
745                      "loc": {
746                        "start": {
747                          "line": 17,
748                          "column": 5,
749                          "program": "main_entry_point_7.ets"
750                        },
751                        "end": {
752                          "line": 17,
753                          "column": 13,
754                          "program": "main_entry_point_7.ets"
755                        }
756                      }
757                    }
758                  ],
759                  "loc": {
760                    "start": {
761                      "line": 16,
762                      "column": 23,
763                      "program": "main_entry_point_7.ets"
764                    },
765                    "end": {
766                      "line": 18,
767                      "column": 2,
768                      "program": "main_entry_point_7.ets"
769                    }
770                  }
771                },
772                "loc": {
773                  "start": {
774                    "line": 16,
775                    "column": 10,
776                    "program": "main_entry_point_7.ets"
777                  },
778                  "end": {
779                    "line": 18,
780                    "column": 2,
781                    "program": "main_entry_point_7.ets"
782                  }
783                }
784              },
785              "loc": {
786                "start": {
787                  "line": 16,
788                  "column": 10,
789                  "program": "main_entry_point_7.ets"
790                },
791                "end": {
792                  "line": 18,
793                  "column": 2,
794                  "program": "main_entry_point_7.ets"
795                }
796              }
797            },
798            "overloads": [],
799            "decorators": [],
800            "loc": {
801              "start": {
802                "line": 16,
803                "column": 1,
804                "program": "main_entry_point_7.ets"
805              },
806              "end": {
807                "line": 18,
808                "column": 2,
809                "program": "main_entry_point_7.ets"
810              }
811            }
812          }
813        ],
814        "loc": {
815          "start": {
816            "line": 1,
817            "column": 1,
818            "program": "main_entry_point_7.ets"
819          },
820          "end": {
821            "line": 1,
822            "column": 1,
823            "program": "main_entry_point_7.ets"
824          }
825        }
826      },
827      "loc": {
828        "start": {
829          "line": 1,
830          "column": 1,
831          "program": "main_entry_point_7.ets"
832        },
833        "end": {
834          "line": 1,
835          "column": 1,
836          "program": "main_entry_point_7.ets"
837        }
838      }
839    }
840  ],
841  "loc": {
842    "start": {
843      "line": 1,
844      "column": 1,
845      "program": "main_entry_point_7.ets"
846    },
847    "end": {
848      "line": 29,
849      "column": 1,
850      "program": "main_entry_point_7.ets"
851    }
852  }
853}
854