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