• 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": "throwingFunctionCheck2.ets"
16            },
17            "end": {
18              "line": 1,
19              "column": 1,
20              "program": "throwingFunctionCheck2.ets"
21            }
22          }
23        },
24        "superClass": null,
25        "implements": [],
26        "body": [
27          {
28            "type": "MethodDefinition",
29            "key": {
30              "type": "Identifier",
31              "name": "_$init$_",
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": "_$init$_",
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": "throwingFunctionCheck2.ets"
125              },
126              "end": {
127                "line": 1,
128                "column": 1,
129                "program": "throwingFunctionCheck2.ets"
130              }
131            }
132          },
133          {
134            "type": "MethodDefinition",
135            "key": {
136              "type": "Identifier",
137              "name": "TestFunction",
138              "decorators": [],
139              "loc": {
140                "start": {
141                  "line": 16,
142                  "column": 10,
143                  "program": "throwingFunctionCheck2.ets"
144                },
145                "end": {
146                  "line": 16,
147                  "column": 22,
148                  "program": "throwingFunctionCheck2.ets"
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": "TestFunction",
164                  "decorators": [],
165                  "loc": {
166                    "start": {
167                      "line": 16,
168                      "column": 10,
169                      "program": "throwingFunctionCheck2.ets"
170                    },
171                    "end": {
172                      "line": 16,
173                      "column": 22,
174                      "program": "throwingFunctionCheck2.ets"
175                    }
176                  }
177                },
178                "generator": false,
179                "async": false,
180                "expression": false,
181                "params": [],
182                "returnType": {
183                  "type": "ETSPrimitiveType",
184                  "loc": {
185                    "start": {
186                      "line": 16,
187                      "column": 26,
188                      "program": "throwingFunctionCheck2.ets"
189                    },
190                    "end": {
191                      "line": 16,
192                      "column": 30,
193                      "program": "throwingFunctionCheck2.ets"
194                    }
195                  }
196                },
197                "body": {
198                  "type": "BlockStatement",
199                  "statements": [],
200                  "loc": {
201                    "start": {
202                      "line": 16,
203                      "column": 38,
204                      "program": "throwingFunctionCheck2.ets"
205                    },
206                    "end": {
207                      "line": 16,
208                      "column": 40,
209                      "program": "throwingFunctionCheck2.ets"
210                    }
211                  }
212                },
213                "throwMarker": "throws",
214                "loc": {
215                  "start": {
216                    "line": 16,
217                    "column": 10,
218                    "program": "throwingFunctionCheck2.ets"
219                  },
220                  "end": {
221                    "line": 16,
222                    "column": 40,
223                    "program": "throwingFunctionCheck2.ets"
224                  }
225                }
226              },
227              "loc": {
228                "start": {
229                  "line": 16,
230                  "column": 10,
231                  "program": "throwingFunctionCheck2.ets"
232                },
233                "end": {
234                  "line": 16,
235                  "column": 40,
236                  "program": "throwingFunctionCheck2.ets"
237                }
238              }
239            },
240            "overloads": [],
241            "decorators": [],
242            "loc": {
243              "start": {
244                "line": 16,
245                "column": 1,
246                "program": "throwingFunctionCheck2.ets"
247              },
248              "end": {
249                "line": 16,
250                "column": 40,
251                "program": "throwingFunctionCheck2.ets"
252              }
253            }
254          },
255          {
256            "type": "MethodDefinition",
257            "key": {
258              "type": "Identifier",
259              "name": "main",
260              "decorators": [],
261              "loc": {
262                "start": {
263                  "line": 18,
264                  "column": 10,
265                  "program": "throwingFunctionCheck2.ets"
266                },
267                "end": {
268                  "line": 18,
269                  "column": 14,
270                  "program": "throwingFunctionCheck2.ets"
271                }
272              }
273            },
274            "kind": "method",
275            "accessibility": "public",
276            "static": true,
277            "optional": false,
278            "computed": false,
279            "value": {
280              "type": "FunctionExpression",
281              "function": {
282                "type": "ScriptFunction",
283                "id": {
284                  "type": "Identifier",
285                  "name": "main",
286                  "decorators": [],
287                  "loc": {
288                    "start": {
289                      "line": 18,
290                      "column": 10,
291                      "program": "throwingFunctionCheck2.ets"
292                    },
293                    "end": {
294                      "line": 18,
295                      "column": 14,
296                      "program": "throwingFunctionCheck2.ets"
297                    }
298                  }
299                },
300                "generator": false,
301                "async": false,
302                "expression": false,
303                "params": [],
304                "returnType": {
305                  "type": "ETSPrimitiveType",
306                  "loc": {
307                    "start": {
308                      "line": 18,
309                      "column": 18,
310                      "program": "throwingFunctionCheck2.ets"
311                    },
312                    "end": {
313                      "line": 18,
314                      "column": 22,
315                      "program": "throwingFunctionCheck2.ets"
316                    }
317                  }
318                },
319                "body": {
320                  "type": "BlockStatement",
321                  "statements": [
322                    {
323                      "type": "TryStatement",
324                      "block": {
325                        "type": "BlockStatement",
326                        "statements": [
327                          {
328                            "type": "TryStatement",
329                            "block": {
330                              "type": "BlockStatement",
331                              "statements": [
332                                {
333                                  "type": "TryStatement",
334                                  "block": {
335                                    "type": "BlockStatement",
336                                    "statements": [
337                                      {
338                                        "type": "ExpressionStatement",
339                                        "expression": {
340                                          "type": "CallExpression",
341                                          "callee": {
342                                            "type": "Identifier",
343                                            "name": "TestFunction",
344                                            "decorators": [],
345                                            "loc": {
346                                              "start": {
347                                                "line": 22,
348                                                "column": 17,
349                                                "program": "throwingFunctionCheck2.ets"
350                                              },
351                                              "end": {
352                                                "line": 22,
353                                                "column": 29,
354                                                "program": "throwingFunctionCheck2.ets"
355                                              }
356                                            }
357                                          },
358                                          "arguments": [],
359                                          "optional": false,
360                                          "loc": {
361                                            "start": {
362                                              "line": 22,
363                                              "column": 17,
364                                              "program": "throwingFunctionCheck2.ets"
365                                            },
366                                            "end": {
367                                              "line": 22,
368                                              "column": 31,
369                                              "program": "throwingFunctionCheck2.ets"
370                                            }
371                                          }
372                                        },
373                                        "loc": {
374                                          "start": {
375                                            "line": 22,
376                                            "column": 17,
377                                            "program": "throwingFunctionCheck2.ets"
378                                          },
379                                          "end": {
380                                            "line": 22,
381                                            "column": 32,
382                                            "program": "throwingFunctionCheck2.ets"
383                                          }
384                                        }
385                                      }
386                                    ],
387                                    "loc": {
388                                      "start": {
389                                        "line": 21,
390                                        "column": 17,
391                                        "program": "throwingFunctionCheck2.ets"
392                                      },
393                                      "end": {
394                                        "line": 23,
395                                        "column": 14,
396                                        "program": "throwingFunctionCheck2.ets"
397                                      }
398                                    }
399                                  },
400                                  "handler": [
401                                    {
402                                      "type": "CatchClause",
403                                      "body": {
404                                        "type": "BlockStatement",
405                                        "statements": [],
406                                        "loc": {
407                                          "start": {
408                                            "line": 23,
409                                            "column": 36,
410                                            "program": "throwingFunctionCheck2.ets"
411                                          },
412                                          "end": {
413                                            "line": 23,
414                                            "column": 38,
415                                            "program": "throwingFunctionCheck2.ets"
416                                          }
417                                        }
418                                      },
419                                      "param": {
420                                        "type": "Identifier",
421                                        "name": "e",
422                                        "typeAnnotation": {
423                                          "type": "ETSTypeReference",
424                                          "part": {
425                                            "type": "ETSTypeReferencePart",
426                                            "name": {
427                                              "type": "Identifier",
428                                              "name": "Exception",
429                                              "decorators": [],
430                                              "loc": {
431                                                "start": {
432                                                  "line": 23,
433                                                  "column": 25,
434                                                  "program": "throwingFunctionCheck2.ets"
435                                                },
436                                                "end": {
437                                                  "line": 23,
438                                                  "column": 34,
439                                                  "program": "throwingFunctionCheck2.ets"
440                                                }
441                                              }
442                                            },
443                                            "loc": {
444                                              "start": {
445                                                "line": 23,
446                                                "column": 25,
447                                                "program": "throwingFunctionCheck2.ets"
448                                              },
449                                              "end": {
450                                                "line": 23,
451                                                "column": 35,
452                                                "program": "throwingFunctionCheck2.ets"
453                                              }
454                                            }
455                                          },
456                                          "loc": {
457                                            "start": {
458                                              "line": 23,
459                                              "column": 25,
460                                              "program": "throwingFunctionCheck2.ets"
461                                            },
462                                            "end": {
463                                              "line": 23,
464                                              "column": 35,
465                                              "program": "throwingFunctionCheck2.ets"
466                                            }
467                                          }
468                                        },
469                                        "decorators": [],
470                                        "loc": {
471                                          "start": {
472                                            "line": 23,
473                                            "column": 22,
474                                            "program": "throwingFunctionCheck2.ets"
475                                          },
476                                          "end": {
477                                            "line": 23,
478                                            "column": 23,
479                                            "program": "throwingFunctionCheck2.ets"
480                                          }
481                                        }
482                                      },
483                                      "loc": {
484                                        "start": {
485                                          "line": 23,
486                                          "column": 15,
487                                          "program": "throwingFunctionCheck2.ets"
488                                        },
489                                        "end": {
490                                          "line": 23,
491                                          "column": 38,
492                                          "program": "throwingFunctionCheck2.ets"
493                                        }
494                                      }
495                                    }
496                                  ],
497                                  "finalizer": null,
498                                  "loc": {
499                                    "start": {
500                                      "line": 21,
501                                      "column": 13,
502                                      "program": "throwingFunctionCheck2.ets"
503                                    },
504                                    "end": {
505                                      "line": 23,
506                                      "column": 38,
507                                      "program": "throwingFunctionCheck2.ets"
508                                    }
509                                  }
510                                }
511                              ],
512                              "loc": {
513                                "start": {
514                                  "line": 20,
515                                  "column": 13,
516                                  "program": "throwingFunctionCheck2.ets"
517                                },
518                                "end": {
519                                  "line": 24,
520                                  "column": 10,
521                                  "program": "throwingFunctionCheck2.ets"
522                                }
523                              }
524                            },
525                            "handler": [
526                              {
527                                "type": "CatchClause",
528                                "body": {
529                                  "type": "BlockStatement",
530                                  "statements": [],
531                                  "loc": {
532                                    "start": {
533                                      "line": 24,
534                                      "column": 21,
535                                      "program": "throwingFunctionCheck2.ets"
536                                    },
537                                    "end": {
538                                      "line": 24,
539                                      "column": 23,
540                                      "program": "throwingFunctionCheck2.ets"
541                                    }
542                                  }
543                                },
544                                "param": {
545                                  "type": "Identifier",
546                                  "name": "e",
547                                  "decorators": [],
548                                  "loc": {
549                                    "start": {
550                                      "line": 24,
551                                      "column": 18,
552                                      "program": "throwingFunctionCheck2.ets"
553                                    },
554                                    "end": {
555                                      "line": 24,
556                                      "column": 19,
557                                      "program": "throwingFunctionCheck2.ets"
558                                    }
559                                  }
560                                },
561                                "loc": {
562                                  "start": {
563                                    "line": 24,
564                                    "column": 11,
565                                    "program": "throwingFunctionCheck2.ets"
566                                  },
567                                  "end": {
568                                    "line": 24,
569                                    "column": 23,
570                                    "program": "throwingFunctionCheck2.ets"
571                                  }
572                                }
573                              }
574                            ],
575                            "finalizer": null,
576                            "loc": {
577                              "start": {
578                                "line": 20,
579                                "column": 9,
580                                "program": "throwingFunctionCheck2.ets"
581                              },
582                              "end": {
583                                "line": 24,
584                                "column": 23,
585                                "program": "throwingFunctionCheck2.ets"
586                              }
587                            }
588                          }
589                        ],
590                        "loc": {
591                          "start": {
592                            "line": 19,
593                            "column": 9,
594                            "program": "throwingFunctionCheck2.ets"
595                          },
596                          "end": {
597                            "line": 25,
598                            "column": 6,
599                            "program": "throwingFunctionCheck2.ets"
600                          }
601                        }
602                      },
603                      "handler": [
604                        {
605                          "type": "CatchClause",
606                          "body": {
607                            "type": "BlockStatement",
608                            "statements": [],
609                            "loc": {
610                              "start": {
611                                "line": 25,
612                                "column": 28,
613                                "program": "throwingFunctionCheck2.ets"
614                              },
615                              "end": {
616                                "line": 25,
617                                "column": 30,
618                                "program": "throwingFunctionCheck2.ets"
619                              }
620                            }
621                          },
622                          "param": {
623                            "type": "Identifier",
624                            "name": "e",
625                            "typeAnnotation": {
626                              "type": "ETSTypeReference",
627                              "part": {
628                                "type": "ETSTypeReferencePart",
629                                "name": {
630                                  "type": "Identifier",
631                                  "name": "Exception",
632                                  "decorators": [],
633                                  "loc": {
634                                    "start": {
635                                      "line": 25,
636                                      "column": 17,
637                                      "program": "throwingFunctionCheck2.ets"
638                                    },
639                                    "end": {
640                                      "line": 25,
641                                      "column": 26,
642                                      "program": "throwingFunctionCheck2.ets"
643                                    }
644                                  }
645                                },
646                                "loc": {
647                                  "start": {
648                                    "line": 25,
649                                    "column": 17,
650                                    "program": "throwingFunctionCheck2.ets"
651                                  },
652                                  "end": {
653                                    "line": 25,
654                                    "column": 27,
655                                    "program": "throwingFunctionCheck2.ets"
656                                  }
657                                }
658                              },
659                              "loc": {
660                                "start": {
661                                  "line": 25,
662                                  "column": 17,
663                                  "program": "throwingFunctionCheck2.ets"
664                                },
665                                "end": {
666                                  "line": 25,
667                                  "column": 27,
668                                  "program": "throwingFunctionCheck2.ets"
669                                }
670                              }
671                            },
672                            "decorators": [],
673                            "loc": {
674                              "start": {
675                                "line": 25,
676                                "column": 14,
677                                "program": "throwingFunctionCheck2.ets"
678                              },
679                              "end": {
680                                "line": 25,
681                                "column": 15,
682                                "program": "throwingFunctionCheck2.ets"
683                              }
684                            }
685                          },
686                          "loc": {
687                            "start": {
688                              "line": 25,
689                              "column": 7,
690                              "program": "throwingFunctionCheck2.ets"
691                            },
692                            "end": {
693                              "line": 25,
694                              "column": 30,
695                              "program": "throwingFunctionCheck2.ets"
696                            }
697                          }
698                        }
699                      ],
700                      "finalizer": null,
701                      "loc": {
702                        "start": {
703                          "line": 19,
704                          "column": 5,
705                          "program": "throwingFunctionCheck2.ets"
706                        },
707                        "end": {
708                          "line": 25,
709                          "column": 30,
710                          "program": "throwingFunctionCheck2.ets"
711                        }
712                      }
713                    }
714                  ],
715                  "loc": {
716                    "start": {
717                      "line": 18,
718                      "column": 23,
719                      "program": "throwingFunctionCheck2.ets"
720                    },
721                    "end": {
722                      "line": 26,
723                      "column": 2,
724                      "program": "throwingFunctionCheck2.ets"
725                    }
726                  }
727                },
728                "loc": {
729                  "start": {
730                    "line": 18,
731                    "column": 10,
732                    "program": "throwingFunctionCheck2.ets"
733                  },
734                  "end": {
735                    "line": 26,
736                    "column": 2,
737                    "program": "throwingFunctionCheck2.ets"
738                  }
739                }
740              },
741              "loc": {
742                "start": {
743                  "line": 18,
744                  "column": 10,
745                  "program": "throwingFunctionCheck2.ets"
746                },
747                "end": {
748                  "line": 26,
749                  "column": 2,
750                  "program": "throwingFunctionCheck2.ets"
751                }
752              }
753            },
754            "overloads": [],
755            "decorators": [],
756            "loc": {
757              "start": {
758                "line": 18,
759                "column": 1,
760                "program": "throwingFunctionCheck2.ets"
761              },
762              "end": {
763                "line": 26,
764                "column": 2,
765                "program": "throwingFunctionCheck2.ets"
766              }
767            }
768          }
769        ],
770        "loc": {
771          "start": {
772            "line": 1,
773            "column": 1,
774            "program": "throwingFunctionCheck2.ets"
775          },
776          "end": {
777            "line": 1,
778            "column": 1,
779            "program": "throwingFunctionCheck2.ets"
780          }
781        }
782      },
783      "loc": {
784        "start": {
785          "line": 1,
786          "column": 1,
787          "program": "throwingFunctionCheck2.ets"
788        },
789        "end": {
790          "line": 1,
791          "column": 1,
792          "program": "throwingFunctionCheck2.ets"
793        }
794      }
795    }
796  ],
797  "loc": {
798    "start": {
799      "line": 1,
800      "column": 1,
801      "program": "throwingFunctionCheck2.ets"
802    },
803    "end": {
804      "line": 27,
805      "column": 1,
806      "program": "throwingFunctionCheck2.ets"
807    }
808  }
809}
810