• 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",
30              "decorators": [],
31              "loc": {
32                "start": {
33                  "line": 17,
34                  "column": 5
35                },
36                "end": {
37                  "line": 17,
38                  "column": 6
39                }
40              }
41            },
42            "accessibility": "public",
43            "static": false,
44            "readonly": false,
45            "declare": false,
46            "optional": false,
47            "computed": false,
48            "typeAnnotation": {
49              "type": "ETSFunctionType",
50              "params": [
51                {
52                  "type": "ETSParameterExpression",
53                  "name": {
54                    "type": "Identifier",
55                    "name": "a",
56                    "typeAnnotation": {
57                      "type": "ETSPrimitiveType",
58                      "loc": {
59                        "start": {
60                          "line": 17,
61                          "column": 12
62                        },
63                        "end": {
64                          "line": 17,
65                          "column": 15
66                        }
67                      }
68                    },
69                    "decorators": [],
70                    "loc": {
71                      "start": {
72                        "line": 17,
73                        "column": 9
74                      },
75                      "end": {
76                        "line": 17,
77                        "column": 15
78                      }
79                    }
80                  },
81                  "loc": {
82                    "start": {
83                      "line": 17,
84                      "column": 9
85                    },
86                    "end": {
87                      "line": 17,
88                      "column": 15
89                    }
90                  }
91                },
92                {
93                  "type": "ETSParameterExpression",
94                  "name": {
95                    "type": "Identifier",
96                    "name": "b",
97                    "typeAnnotation": {
98                      "type": "ETSPrimitiveType",
99                      "loc": {
100                        "start": {
101                          "line": 17,
102                          "column": 20
103                        },
104                        "end": {
105                          "line": 17,
106                          "column": 23
107                        }
108                      }
109                    },
110                    "decorators": [],
111                    "loc": {
112                      "start": {
113                        "line": 17,
114                        "column": 17
115                      },
116                      "end": {
117                        "line": 17,
118                        "column": 23
119                      }
120                    }
121                  },
122                  "loc": {
123                    "start": {
124                      "line": 17,
125                      "column": 17
126                    },
127                    "end": {
128                      "line": 17,
129                      "column": 23
130                    }
131                  }
132                }
133              ],
134              "returnType": {
135                "type": "ETSPrimitiveType",
136                "loc": {
137                  "start": {
138                    "line": 17,
139                    "column": 28
140                  },
141                  "end": {
142                    "line": 17,
143                    "column": 32
144                  }
145                }
146              },
147              "loc": {
148                "start": {
149                  "line": 17,
150                  "column": 8
151                },
152                "end": {
153                  "line": 17,
154                  "column": 32
155                }
156              }
157            },
158            "definite": false,
159            "decorators": [],
160            "loc": {
161              "start": {
162                "line": 17,
163                "column": 5
164              },
165              "end": {
166                "line": 17,
167                "column": 32
168              }
169            }
170          },
171          {
172            "type": "MethodDefinition",
173            "key": {
174              "type": "Identifier",
175              "name": "constructor",
176              "decorators": [],
177              "loc": {
178                "start": {
179                  "line": 1,
180                  "column": 1
181                },
182                "end": {
183                  "line": 1,
184                  "column": 1
185                }
186              }
187            },
188            "kind": "constructor",
189            "static": false,
190            "optional": false,
191            "computed": false,
192            "value": {
193              "type": "FunctionExpression",
194              "function": {
195                "type": "ScriptFunction",
196                "id": {
197                  "type": "Identifier",
198                  "name": "constructor",
199                  "decorators": [],
200                  "loc": {
201                    "start": {
202                      "line": 1,
203                      "column": 1
204                    },
205                    "end": {
206                      "line": 1,
207                      "column": 1
208                    }
209                  }
210                },
211                "generator": false,
212                "async": false,
213                "expression": false,
214                "params": [],
215                "body": {
216                  "type": "BlockStatement",
217                  "statements": [],
218                  "loc": {
219                    "start": {
220                      "line": 1,
221                      "column": 1
222                    },
223                    "end": {
224                      "line": 1,
225                      "column": 1
226                    }
227                  }
228                },
229                "loc": {
230                  "start": {
231                    "line": 1,
232                    "column": 1
233                  },
234                  "end": {
235                    "line": 1,
236                    "column": 1
237                  }
238                }
239              },
240              "loc": {
241                "start": {
242                  "line": 1,
243                  "column": 1
244                },
245                "end": {
246                  "line": 1,
247                  "column": 1
248                }
249              }
250            },
251            "overloads": [],
252            "decorators": [],
253            "loc": {
254              "start": {
255                "line": 18,
256                "column": 2
257              },
258              "end": {
259                "line": 18,
260                "column": 2
261              }
262            }
263          }
264        ],
265        "loc": {
266          "start": {
267            "line": 16,
268            "column": 9
269          },
270          "end": {
271            "line": 18,
272            "column": 2
273          }
274        }
275      },
276      "loc": {
277        "start": {
278          "line": 16,
279          "column": 1
280        },
281        "end": {
282          "line": 18,
283          "column": 2
284        }
285      }
286    },
287    {
288      "type": "ClassDeclaration",
289      "definition": {
290        "id": {
291          "type": "Identifier",
292          "name": "B",
293          "decorators": [],
294          "loc": {
295            "start": {
296              "line": 20,
297              "column": 7
298            },
299            "end": {
300              "line": 20,
301              "column": 8
302            }
303          }
304        },
305        "superClass": {
306          "type": "ETSTypeReference",
307          "part": {
308            "type": "ETSTypeReferencePart",
309            "name": {
310              "type": "Identifier",
311              "name": "A",
312              "decorators": [],
313              "loc": {
314                "start": {
315                  "line": 20,
316                  "column": 17
317                },
318                "end": {
319                  "line": 20,
320                  "column": 18
321                }
322              }
323            },
324            "loc": {
325              "start": {
326                "line": 20,
327                "column": 17
328              },
329              "end": {
330                "line": 20,
331                "column": 20
332              }
333            }
334          },
335          "loc": {
336            "start": {
337              "line": 20,
338              "column": 17
339            },
340            "end": {
341              "line": 20,
342              "column": 20
343            }
344          }
345        },
346        "implements": [],
347        "body": [
348          {
349            "type": "ClassProperty",
350            "key": {
351              "type": "Identifier",
352              "name": "a",
353              "decorators": [],
354              "loc": {
355                "start": {
356                  "line": 21,
357                  "column": 5
358                },
359                "end": {
360                  "line": 21,
361                  "column": 6
362                }
363              }
364            },
365            "value": {
366              "type": "NumberLiteral",
367              "value": 1,
368              "loc": {
369                "start": {
370                  "line": 21,
371                  "column": 14
372                },
373                "end": {
374                  "line": 21,
375                  "column": 15
376                }
377              }
378            },
379            "accessibility": "public",
380            "static": false,
381            "readonly": false,
382            "declare": false,
383            "optional": false,
384            "computed": false,
385            "typeAnnotation": {
386              "type": "ETSPrimitiveType",
387              "loc": {
388                "start": {
389                  "line": 21,
390                  "column": 8
391                },
392                "end": {
393                  "line": 21,
394                  "column": 11
395                }
396              }
397            },
398            "definite": false,
399            "decorators": [],
400            "loc": {
401              "start": {
402                "line": 21,
403                "column": 5
404              },
405              "end": {
406                "line": 21,
407                "column": 15
408              }
409            }
410          },
411          {
412            "type": "MethodDefinition",
413            "key": {
414              "type": "Identifier",
415              "name": "constructor",
416              "decorators": [],
417              "loc": {
418                "start": {
419                  "line": 1,
420                  "column": 1
421                },
422                "end": {
423                  "line": 1,
424                  "column": 1
425                }
426              }
427            },
428            "kind": "constructor",
429            "static": false,
430            "optional": false,
431            "computed": false,
432            "value": {
433              "type": "FunctionExpression",
434              "function": {
435                "type": "ScriptFunction",
436                "id": {
437                  "type": "Identifier",
438                  "name": "constructor",
439                  "decorators": [],
440                  "loc": {
441                    "start": {
442                      "line": 1,
443                      "column": 1
444                    },
445                    "end": {
446                      "line": 1,
447                      "column": 1
448                    }
449                  }
450                },
451                "generator": false,
452                "async": false,
453                "expression": false,
454                "params": [],
455                "body": {
456                  "type": "BlockStatement",
457                  "statements": [],
458                  "loc": {
459                    "start": {
460                      "line": 1,
461                      "column": 1
462                    },
463                    "end": {
464                      "line": 1,
465                      "column": 1
466                    }
467                  }
468                },
469                "loc": {
470                  "start": {
471                    "line": 1,
472                    "column": 1
473                  },
474                  "end": {
475                    "line": 1,
476                    "column": 1
477                  }
478                }
479              },
480              "loc": {
481                "start": {
482                  "line": 1,
483                  "column": 1
484                },
485                "end": {
486                  "line": 1,
487                  "column": 1
488                }
489              }
490            },
491            "overloads": [],
492            "decorators": [],
493            "loc": {
494              "start": {
495                "line": 22,
496                "column": 2
497              },
498              "end": {
499                "line": 22,
500                "column": 2
501              }
502            }
503          }
504        ],
505        "loc": {
506          "start": {
507            "line": 20,
508            "column": 19
509          },
510          "end": {
511            "line": 22,
512            "column": 2
513          }
514        }
515      },
516      "loc": {
517        "start": {
518          "line": 20,
519          "column": 1
520        },
521        "end": {
522          "line": 22,
523          "column": 2
524        }
525      }
526    },
527    {
528      "type": "ClassDeclaration",
529      "definition": {
530        "id": {
531          "type": "Identifier",
532          "name": "ETSGLOBAL",
533          "decorators": [],
534          "loc": {
535            "start": {
536              "line": 1,
537              "column": 1
538            },
539            "end": {
540              "line": 1,
541              "column": 1
542            }
543          }
544        },
545        "superClass": null,
546        "implements": [],
547        "body": [
548          {
549            "type": "MethodDefinition",
550            "key": {
551              "type": "Identifier",
552              "name": "_$init$_",
553              "decorators": [],
554              "loc": {
555                "start": {
556                  "line": 1,
557                  "column": 1
558                },
559                "end": {
560                  "line": 1,
561                  "column": 1
562                }
563              }
564            },
565            "kind": "method",
566            "accessibility": "public",
567            "static": true,
568            "optional": false,
569            "computed": false,
570            "value": {
571              "type": "FunctionExpression",
572              "function": {
573                "type": "ScriptFunction",
574                "id": {
575                  "type": "Identifier",
576                  "name": "_$init$_",
577                  "decorators": [],
578                  "loc": {
579                    "start": {
580                      "line": 1,
581                      "column": 1
582                    },
583                    "end": {
584                      "line": 1,
585                      "column": 1
586                    }
587                  }
588                },
589                "generator": false,
590                "async": false,
591                "expression": false,
592                "params": [],
593                "body": {
594                  "type": "BlockStatement",
595                  "statements": [],
596                  "loc": {
597                    "start": {
598                      "line": 1,
599                      "column": 1
600                    },
601                    "end": {
602                      "line": 1,
603                      "column": 1
604                    }
605                  }
606                },
607                "loc": {
608                  "start": {
609                    "line": 1,
610                    "column": 1
611                  },
612                  "end": {
613                    "line": 1,
614                    "column": 1
615                  }
616                }
617              },
618              "loc": {
619                "start": {
620                  "line": 1,
621                  "column": 1
622                },
623                "end": {
624                  "line": 1,
625                  "column": 1
626                }
627              }
628            },
629            "overloads": [],
630            "decorators": [],
631            "loc": {
632              "start": {
633                "line": 1,
634                "column": 1
635              },
636              "end": {
637                "line": 1,
638                "column": 1
639              }
640            }
641          }
642        ],
643        "loc": {
644          "start": {
645            "line": 1,
646            "column": 1
647          },
648          "end": {
649            "line": 1,
650            "column": 1
651          }
652        }
653      },
654      "loc": {
655        "start": {
656          "line": 1,
657          "column": 1
658        },
659        "end": {
660          "line": 1,
661          "column": 1
662        }
663      }
664    }
665  ],
666  "loc": {
667    "start": {
668      "line": 1,
669      "column": 1
670    },
671    "end": {
672      "line": 23,
673      "column": 1
674    }
675  }
676}
677