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