• 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": "catch",
10          "decorators": [],
11          "loc": {
12            "start": {
13              "line": 16,
14              "column": 7,
15              "program": "catch-soft-keyword.ets"
16            },
17            "end": {
18              "line": 16,
19              "column": 12,
20              "program": "catch-soft-keyword.ets"
21            }
22          }
23        },
24        "superClass": null,
25        "implements": [],
26        "body": [
27          {
28            "type": "MethodDefinition",
29            "key": {
30              "type": "Identifier",
31              "name": "constructor",
32              "decorators": [],
33              "loc": {
34                "start": {
35                  "line": 16,
36                  "column": 14,
37                  "program": "catch-soft-keyword.ets"
38                },
39                "end": {
40                  "line": 16,
41                  "column": 14,
42                  "program": "catch-soft-keyword.ets"
43                }
44              }
45            },
46            "kind": "constructor",
47            "static": false,
48            "optional": false,
49            "computed": false,
50            "value": {
51              "type": "FunctionExpression",
52              "function": {
53                "type": "ScriptFunction",
54                "id": {
55                  "type": "Identifier",
56                  "name": "constructor",
57                  "decorators": [],
58                  "loc": {
59                    "start": {
60                      "line": 16,
61                      "column": 14,
62                      "program": "catch-soft-keyword.ets"
63                    },
64                    "end": {
65                      "line": 16,
66                      "column": 14,
67                      "program": "catch-soft-keyword.ets"
68                    }
69                  }
70                },
71                "generator": false,
72                "async": false,
73                "expression": false,
74                "params": [],
75                "body": {
76                  "type": "BlockStatement",
77                  "statements": [],
78                  "loc": {
79                    "start": {
80                      "line": 16,
81                      "column": 14,
82                      "program": "catch-soft-keyword.ets"
83                    },
84                    "end": {
85                      "line": 16,
86                      "column": 14,
87                      "program": "catch-soft-keyword.ets"
88                    }
89                  }
90                },
91                "loc": {
92                  "start": {
93                    "line": 16,
94                    "column": 14,
95                    "program": "catch-soft-keyword.ets"
96                  },
97                  "end": {
98                    "line": 16,
99                    "column": 14,
100                    "program": "catch-soft-keyword.ets"
101                  }
102                }
103              },
104              "loc": {
105                "start": {
106                  "line": 16,
107                  "column": 14,
108                  "program": "catch-soft-keyword.ets"
109                },
110                "end": {
111                  "line": 16,
112                  "column": 14,
113                  "program": "catch-soft-keyword.ets"
114                }
115              }
116            },
117            "overloads": [],
118            "decorators": [],
119            "loc": {
120              "start": {
121                "line": 1,
122                "column": 1,
123                "program": null
124              },
125              "end": {
126                "line": 1,
127                "column": 1,
128                "program": null
129              }
130            }
131          }
132        ],
133        "loc": {
134          "start": {
135            "line": 16,
136            "column": 13,
137            "program": "catch-soft-keyword.ets"
138          },
139          "end": {
140            "line": 19,
141            "column": 6,
142            "program": "catch-soft-keyword.ets"
143          }
144        }
145      },
146      "loc": {
147        "start": {
148          "line": 16,
149          "column": 1,
150          "program": "catch-soft-keyword.ets"
151        },
152        "end": {
153          "line": 19,
154          "column": 6,
155          "program": "catch-soft-keyword.ets"
156        }
157      }
158    },
159    {
160      "type": "ClassDeclaration",
161      "definition": {
162        "id": {
163          "type": "Identifier",
164          "name": "cls",
165          "decorators": [],
166          "loc": {
167            "start": {
168              "line": 19,
169              "column": 7,
170              "program": "catch-soft-keyword.ets"
171            },
172            "end": {
173              "line": 19,
174              "column": 10,
175              "program": "catch-soft-keyword.ets"
176            }
177          }
178        },
179        "superClass": null,
180        "implements": [],
181        "body": [
182          {
183            "type": "MethodDefinition",
184            "key": {
185              "type": "Identifier",
186              "name": "catch",
187              "decorators": [],
188              "loc": {
189                "start": {
190                  "line": 20,
191                  "column": 3,
192                  "program": "catch-soft-keyword.ets"
193                },
194                "end": {
195                  "line": 20,
196                  "column": 8,
197                  "program": "catch-soft-keyword.ets"
198                }
199              }
200            },
201            "kind": "method",
202            "accessibility": "public",
203            "static": false,
204            "optional": false,
205            "computed": false,
206            "value": {
207              "type": "FunctionExpression",
208              "function": {
209                "type": "ScriptFunction",
210                "id": {
211                  "type": "Identifier",
212                  "name": "catch",
213                  "decorators": [],
214                  "loc": {
215                    "start": {
216                      "line": 20,
217                      "column": 3,
218                      "program": "catch-soft-keyword.ets"
219                    },
220                    "end": {
221                      "line": 20,
222                      "column": 8,
223                      "program": "catch-soft-keyword.ets"
224                    }
225                  }
226                },
227                "generator": false,
228                "async": false,
229                "expression": false,
230                "params": [],
231                "returnType": {
232                  "type": "ETSPrimitiveType",
233                  "loc": {
234                    "start": {
235                      "line": 20,
236                      "column": 12,
237                      "program": "catch-soft-keyword.ets"
238                    },
239                    "end": {
240                      "line": 20,
241                      "column": 16,
242                      "program": "catch-soft-keyword.ets"
243                    }
244                  }
245                },
246                "body": {
247                  "type": "BlockStatement",
248                  "statements": [],
249                  "loc": {
250                    "start": {
251                      "line": 20,
252                      "column": 17,
253                      "program": "catch-soft-keyword.ets"
254                    },
255                    "end": {
256                      "line": 20,
257                      "column": 19,
258                      "program": "catch-soft-keyword.ets"
259                    }
260                  }
261                },
262                "loc": {
263                  "start": {
264                    "line": 20,
265                    "column": 8,
266                    "program": "catch-soft-keyword.ets"
267                  },
268                  "end": {
269                    "line": 20,
270                    "column": 19,
271                    "program": "catch-soft-keyword.ets"
272                  }
273                }
274              },
275              "loc": {
276                "start": {
277                  "line": 20,
278                  "column": 8,
279                  "program": "catch-soft-keyword.ets"
280                },
281                "end": {
282                  "line": 20,
283                  "column": 19,
284                  "program": "catch-soft-keyword.ets"
285                }
286              }
287            },
288            "overloads": [],
289            "decorators": [],
290            "loc": {
291              "start": {
292                "line": 20,
293                "column": 3,
294                "program": "catch-soft-keyword.ets"
295              },
296              "end": {
297                "line": 20,
298                "column": 19,
299                "program": "catch-soft-keyword.ets"
300              }
301            }
302          },
303          {
304            "type": "MethodDefinition",
305            "key": {
306              "type": "Identifier",
307              "name": "constructor",
308              "decorators": [],
309              "loc": {
310                "start": {
311                  "line": 19,
312                  "column": 12,
313                  "program": "catch-soft-keyword.ets"
314                },
315                "end": {
316                  "line": 19,
317                  "column": 12,
318                  "program": "catch-soft-keyword.ets"
319                }
320              }
321            },
322            "kind": "constructor",
323            "static": false,
324            "optional": false,
325            "computed": false,
326            "value": {
327              "type": "FunctionExpression",
328              "function": {
329                "type": "ScriptFunction",
330                "id": {
331                  "type": "Identifier",
332                  "name": "constructor",
333                  "decorators": [],
334                  "loc": {
335                    "start": {
336                      "line": 19,
337                      "column": 12,
338                      "program": "catch-soft-keyword.ets"
339                    },
340                    "end": {
341                      "line": 19,
342                      "column": 12,
343                      "program": "catch-soft-keyword.ets"
344                    }
345                  }
346                },
347                "generator": false,
348                "async": false,
349                "expression": false,
350                "params": [],
351                "body": {
352                  "type": "BlockStatement",
353                  "statements": [],
354                  "loc": {
355                    "start": {
356                      "line": 19,
357                      "column": 12,
358                      "program": "catch-soft-keyword.ets"
359                    },
360                    "end": {
361                      "line": 19,
362                      "column": 12,
363                      "program": "catch-soft-keyword.ets"
364                    }
365                  }
366                },
367                "loc": {
368                  "start": {
369                    "line": 19,
370                    "column": 12,
371                    "program": "catch-soft-keyword.ets"
372                  },
373                  "end": {
374                    "line": 19,
375                    "column": 12,
376                    "program": "catch-soft-keyword.ets"
377                  }
378                }
379              },
380              "loc": {
381                "start": {
382                  "line": 19,
383                  "column": 12,
384                  "program": "catch-soft-keyword.ets"
385                },
386                "end": {
387                  "line": 19,
388                  "column": 12,
389                  "program": "catch-soft-keyword.ets"
390                }
391              }
392            },
393            "overloads": [],
394            "decorators": [],
395            "loc": {
396              "start": {
397                "line": 1,
398                "column": 1,
399                "program": null
400              },
401              "end": {
402                "line": 1,
403                "column": 1,
404                "program": null
405              }
406            }
407          }
408        ],
409        "loc": {
410          "start": {
411            "line": 19,
412            "column": 11,
413            "program": "catch-soft-keyword.ets"
414          },
415          "end": {
416            "line": 23,
417            "column": 9,
418            "program": "catch-soft-keyword.ets"
419          }
420        }
421      },
422      "loc": {
423        "start": {
424          "line": 19,
425          "column": 1,
426          "program": "catch-soft-keyword.ets"
427        },
428        "end": {
429          "line": 23,
430          "column": 9,
431          "program": "catch-soft-keyword.ets"
432        }
433      }
434    },
435    {
436      "type": "ClassDeclaration",
437      "definition": {
438        "id": {
439          "type": "Identifier",
440          "name": "ETSGLOBAL",
441          "decorators": [],
442          "loc": {
443            "start": {
444              "line": 1,
445              "column": 1,
446              "program": "catch-soft-keyword.ets"
447            },
448            "end": {
449              "line": 1,
450              "column": 1,
451              "program": "catch-soft-keyword.ets"
452            }
453          }
454        },
455        "superClass": null,
456        "implements": [],
457        "body": [
458          {
459            "type": "MethodDefinition",
460            "key": {
461              "type": "Identifier",
462              "name": "main",
463              "decorators": [],
464              "loc": {
465                "start": {
466                  "line": 1,
467                  "column": 1,
468                  "program": null
469                },
470                "end": {
471                  "line": 1,
472                  "column": 1,
473                  "program": null
474                }
475              }
476            },
477            "kind": "method",
478            "accessibility": "public",
479            "static": true,
480            "optional": false,
481            "computed": false,
482            "value": {
483              "type": "FunctionExpression",
484              "function": {
485                "type": "ScriptFunction",
486                "id": {
487                  "type": "Identifier",
488                  "name": "main",
489                  "decorators": [],
490                  "loc": {
491                    "start": {
492                      "line": 1,
493                      "column": 1,
494                      "program": null
495                    },
496                    "end": {
497                      "line": 1,
498                      "column": 1,
499                      "program": null
500                    }
501                  }
502                },
503                "generator": false,
504                "async": false,
505                "expression": false,
506                "params": [],
507                "body": {
508                  "type": "BlockStatement",
509                  "statements": [],
510                  "loc": {
511                    "start": {
512                      "line": 1,
513                      "column": 1,
514                      "program": null
515                    },
516                    "end": {
517                      "line": 1,
518                      "column": 1,
519                      "program": null
520                    }
521                  }
522                },
523                "loc": {
524                  "start": {
525                    "line": 1,
526                    "column": 1,
527                    "program": null
528                  },
529                  "end": {
530                    "line": 1,
531                    "column": 1,
532                    "program": null
533                  }
534                }
535              },
536              "loc": {
537                "start": {
538                  "line": 1,
539                  "column": 1,
540                  "program": null
541                },
542                "end": {
543                  "line": 1,
544                  "column": 1,
545                  "program": null
546                }
547              }
548            },
549            "overloads": [],
550            "decorators": [],
551            "loc": {
552              "start": {
553                "line": 1,
554                "column": 1,
555                "program": "catch-soft-keyword.ets"
556              },
557              "end": {
558                "line": 1,
559                "column": 1,
560                "program": "catch-soft-keyword.ets"
561              }
562            }
563          },
564          {
565            "type": "MethodDefinition",
566            "key": {
567              "type": "Identifier",
568              "name": "_$init$_",
569              "decorators": [],
570              "loc": {
571                "start": {
572                  "line": 1,
573                  "column": 1,
574                  "program": null
575                },
576                "end": {
577                  "line": 1,
578                  "column": 1,
579                  "program": null
580                }
581              }
582            },
583            "kind": "method",
584            "accessibility": "public",
585            "static": true,
586            "optional": false,
587            "computed": false,
588            "value": {
589              "type": "FunctionExpression",
590              "function": {
591                "type": "ScriptFunction",
592                "id": {
593                  "type": "Identifier",
594                  "name": "_$init$_",
595                  "decorators": [],
596                  "loc": {
597                    "start": {
598                      "line": 1,
599                      "column": 1,
600                      "program": null
601                    },
602                    "end": {
603                      "line": 1,
604                      "column": 1,
605                      "program": null
606                    }
607                  }
608                },
609                "generator": false,
610                "async": false,
611                "expression": false,
612                "params": [],
613                "body": {
614                  "type": "BlockStatement",
615                  "statements": [],
616                  "loc": {
617                    "start": {
618                      "line": 1,
619                      "column": 1,
620                      "program": null
621                    },
622                    "end": {
623                      "line": 1,
624                      "column": 1,
625                      "program": null
626                    }
627                  }
628                },
629                "loc": {
630                  "start": {
631                    "line": 1,
632                    "column": 1,
633                    "program": null
634                  },
635                  "end": {
636                    "line": 1,
637                    "column": 1,
638                    "program": null
639                  }
640                }
641              },
642              "loc": {
643                "start": {
644                  "line": 1,
645                  "column": 1,
646                  "program": null
647                },
648                "end": {
649                  "line": 1,
650                  "column": 1,
651                  "program": null
652                }
653              }
654            },
655            "overloads": [],
656            "decorators": [],
657            "loc": {
658              "start": {
659                "line": 1,
660                "column": 1,
661                "program": "catch-soft-keyword.ets"
662              },
663              "end": {
664                "line": 1,
665                "column": 1,
666                "program": "catch-soft-keyword.ets"
667              }
668            }
669          },
670          {
671            "type": "MethodDefinition",
672            "key": {
673              "type": "Identifier",
674              "name": "foo",
675              "decorators": [],
676              "loc": {
677                "start": {
678                  "line": 23,
679                  "column": 10,
680                  "program": "catch-soft-keyword.ets"
681                },
682                "end": {
683                  "line": 23,
684                  "column": 13,
685                  "program": "catch-soft-keyword.ets"
686                }
687              }
688            },
689            "kind": "method",
690            "accessibility": "public",
691            "static": true,
692            "optional": false,
693            "computed": false,
694            "value": {
695              "type": "FunctionExpression",
696              "function": {
697                "type": "ScriptFunction",
698                "id": {
699                  "type": "Identifier",
700                  "name": "foo",
701                  "decorators": [],
702                  "loc": {
703                    "start": {
704                      "line": 23,
705                      "column": 10,
706                      "program": "catch-soft-keyword.ets"
707                    },
708                    "end": {
709                      "line": 23,
710                      "column": 13,
711                      "program": "catch-soft-keyword.ets"
712                    }
713                  }
714                },
715                "generator": false,
716                "async": false,
717                "expression": false,
718                "params": [],
719                "returnType": {
720                  "type": "ETSPrimitiveType",
721                  "loc": {
722                    "start": {
723                      "line": 23,
724                      "column": 17,
725                      "program": "catch-soft-keyword.ets"
726                    },
727                    "end": {
728                      "line": 23,
729                      "column": 21,
730                      "program": "catch-soft-keyword.ets"
731                    }
732                  }
733                },
734                "body": {
735                  "type": "BlockStatement",
736                  "statements": [
737                    {
738                      "type": "VariableDeclaration",
739                      "declarations": [
740                        {
741                          "type": "VariableDeclarator",
742                          "id": {
743                            "type": "Identifier",
744                            "name": "catch",
745                            "typeAnnotation": {
746                              "type": "ETSPrimitiveType",
747                              "loc": {
748                                "start": {
749                                  "line": 24,
750                                  "column": 14,
751                                  "program": "catch-soft-keyword.ets"
752                                },
753                                "end": {
754                                  "line": 24,
755                                  "column": 17,
756                                  "program": "catch-soft-keyword.ets"
757                                }
758                              }
759                            },
760                            "decorators": [],
761                            "loc": {
762                              "start": {
763                                "line": 24,
764                                "column": 7,
765                                "program": "catch-soft-keyword.ets"
766                              },
767                              "end": {
768                                "line": 24,
769                                "column": 12,
770                                "program": "catch-soft-keyword.ets"
771                              }
772                            }
773                          },
774                          "init": {
775                            "type": "NumberLiteral",
776                            "value": 5,
777                            "loc": {
778                              "start": {
779                                "line": 24,
780                                "column": 20,
781                                "program": "catch-soft-keyword.ets"
782                              },
783                              "end": {
784                                "line": 24,
785                                "column": 21,
786                                "program": "catch-soft-keyword.ets"
787                              }
788                            }
789                          },
790                          "loc": {
791                            "start": {
792                              "line": 24,
793                              "column": 7,
794                              "program": "catch-soft-keyword.ets"
795                            },
796                            "end": {
797                              "line": 24,
798                              "column": 21,
799                              "program": "catch-soft-keyword.ets"
800                            }
801                          }
802                        }
803                      ],
804                      "kind": "let",
805                      "loc": {
806                        "start": {
807                          "line": 24,
808                          "column": 3,
809                          "program": "catch-soft-keyword.ets"
810                        },
811                        "end": {
812                          "line": 24,
813                          "column": 22,
814                          "program": "catch-soft-keyword.ets"
815                        }
816                      }
817                    },
818                    {
819                      "type": "TryStatement",
820                      "block": {
821                        "type": "BlockStatement",
822                        "statements": [],
823                        "loc": {
824                          "start": {
825                            "line": 25,
826                            "column": 7,
827                            "program": "catch-soft-keyword.ets"
828                          },
829                          "end": {
830                            "line": 26,
831                            "column": 4,
832                            "program": "catch-soft-keyword.ets"
833                          }
834                        }
835                      },
836                      "handler": [
837                        {
838                          "type": "CatchClause",
839                          "body": {
840                            "type": "BlockStatement",
841                            "statements": [],
842                            "loc": {
843                              "start": {
844                                "line": 26,
845                                "column": 30,
846                                "program": "catch-soft-keyword.ets"
847                              },
848                              "end": {
849                                "line": 27,
850                                "column": 4,
851                                "program": "catch-soft-keyword.ets"
852                              }
853                            }
854                          },
855                          "param": {
856                            "type": "Identifier",
857                            "name": "catch",
858                            "typeAnnotation": {
859                              "type": "ETSTypeReference",
860                              "part": {
861                                "type": "ETSTypeReferencePart",
862                                "name": {
863                                  "type": "Identifier",
864                                  "name": "Exception",
865                                  "decorators": [],
866                                  "loc": {
867                                    "start": {
868                                      "line": 26,
869                                      "column": 19,
870                                      "program": "catch-soft-keyword.ets"
871                                    },
872                                    "end": {
873                                      "line": 26,
874                                      "column": 28,
875                                      "program": "catch-soft-keyword.ets"
876                                    }
877                                  }
878                                },
879                                "loc": {
880                                  "start": {
881                                    "line": 26,
882                                    "column": 19,
883                                    "program": "catch-soft-keyword.ets"
884                                  },
885                                  "end": {
886                                    "line": 26,
887                                    "column": 29,
888                                    "program": "catch-soft-keyword.ets"
889                                  }
890                                }
891                              },
892                              "loc": {
893                                "start": {
894                                  "line": 26,
895                                  "column": 19,
896                                  "program": "catch-soft-keyword.ets"
897                                },
898                                "end": {
899                                  "line": 26,
900                                  "column": 29,
901                                  "program": "catch-soft-keyword.ets"
902                                }
903                              }
904                            },
905                            "decorators": [],
906                            "loc": {
907                              "start": {
908                                "line": 26,
909                                "column": 12,
910                                "program": "catch-soft-keyword.ets"
911                              },
912                              "end": {
913                                "line": 26,
914                                "column": 17,
915                                "program": "catch-soft-keyword.ets"
916                              }
917                            }
918                          },
919                          "loc": {
920                            "start": {
921                              "line": 26,
922                              "column": 5,
923                              "program": "catch-soft-keyword.ets"
924                            },
925                            "end": {
926                              "line": 27,
927                              "column": 4,
928                              "program": "catch-soft-keyword.ets"
929                            }
930                          }
931                        }
932                      ],
933                      "finalizer": null,
934                      "loc": {
935                        "start": {
936                          "line": 25,
937                          "column": 3,
938                          "program": "catch-soft-keyword.ets"
939                        },
940                        "end": {
941                          "line": 27,
942                          "column": 4,
943                          "program": "catch-soft-keyword.ets"
944                        }
945                      }
946                    }
947                  ],
948                  "loc": {
949                    "start": {
950                      "line": 23,
951                      "column": 22,
952                      "program": "catch-soft-keyword.ets"
953                    },
954                    "end": {
955                      "line": 28,
956                      "column": 2,
957                      "program": "catch-soft-keyword.ets"
958                    }
959                  }
960                },
961                "loc": {
962                  "start": {
963                    "line": 23,
964                    "column": 10,
965                    "program": "catch-soft-keyword.ets"
966                  },
967                  "end": {
968                    "line": 28,
969                    "column": 2,
970                    "program": "catch-soft-keyword.ets"
971                  }
972                }
973              },
974              "loc": {
975                "start": {
976                  "line": 23,
977                  "column": 10,
978                  "program": "catch-soft-keyword.ets"
979                },
980                "end": {
981                  "line": 28,
982                  "column": 2,
983                  "program": "catch-soft-keyword.ets"
984                }
985              }
986            },
987            "overloads": [],
988            "decorators": [],
989            "loc": {
990              "start": {
991                "line": 23,
992                "column": 1,
993                "program": "catch-soft-keyword.ets"
994              },
995              "end": {
996                "line": 28,
997                "column": 2,
998                "program": "catch-soft-keyword.ets"
999              }
1000            }
1001          }
1002        ],
1003        "loc": {
1004          "start": {
1005            "line": 1,
1006            "column": 1,
1007            "program": "catch-soft-keyword.ets"
1008          },
1009          "end": {
1010            "line": 1,
1011            "column": 1,
1012            "program": "catch-soft-keyword.ets"
1013          }
1014        }
1015      },
1016      "loc": {
1017        "start": {
1018          "line": 1,
1019          "column": 1,
1020          "program": "catch-soft-keyword.ets"
1021        },
1022        "end": {
1023          "line": 1,
1024          "column": 1,
1025          "program": "catch-soft-keyword.ets"
1026        }
1027      }
1028    }
1029  ],
1030  "loc": {
1031    "start": {
1032      "line": 1,
1033      "column": 1,
1034      "program": "catch-soft-keyword.ets"
1035    },
1036    "end": {
1037      "line": 29,
1038      "column": 1,
1039      "program": "catch-soft-keyword.ets"
1040    }
1041  }
1042}
1043