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