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