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