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