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