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