• 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": "switch_alive_4.ets"
16            },
17            "end": {
18              "line": 1,
19              "column": 1,
20              "program": "switch_alive_4.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": "switch_alive_4.ets"
125              },
126              "end": {
127                "line": 1,
128                "column": 1,
129                "program": "switch_alive_4.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": "switch_alive_4.ets"
231              },
232              "end": {
233                "line": 1,
234                "column": 1,
235                "program": "switch_alive_4.ets"
236              }
237            }
238          },
239          {
240            "type": "MethodDefinition",
241            "key": {
242              "type": "Identifier",
243              "name": "f",
244              "decorators": [],
245              "loc": {
246                "start": {
247                  "line": 16,
248                  "column": 10,
249                  "program": "switch_alive_4.ets"
250                },
251                "end": {
252                  "line": 16,
253                  "column": 11,
254                  "program": "switch_alive_4.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": "f",
270                  "decorators": [],
271                  "loc": {
272                    "start": {
273                      "line": 16,
274                      "column": 10,
275                      "program": "switch_alive_4.ets"
276                    },
277                    "end": {
278                      "line": 16,
279                      "column": 11,
280                      "program": "switch_alive_4.ets"
281                    }
282                  }
283                },
284                "generator": false,
285                "async": false,
286                "expression": false,
287                "params": [
288                  {
289                    "type": "ETSParameterExpression",
290                    "name": {
291                      "type": "Identifier",
292                      "name": "s",
293                      "typeAnnotation": {
294                        "type": "ETSPrimitiveType",
295                        "loc": {
296                          "start": {
297                            "line": 16,
298                            "column": 15,
299                            "program": "switch_alive_4.ets"
300                          },
301                          "end": {
302                            "line": 16,
303                            "column": 18,
304                            "program": "switch_alive_4.ets"
305                          }
306                        }
307                      },
308                      "decorators": [],
309                      "loc": {
310                        "start": {
311                          "line": 16,
312                          "column": 12,
313                          "program": "switch_alive_4.ets"
314                        },
315                        "end": {
316                          "line": 16,
317                          "column": 18,
318                          "program": "switch_alive_4.ets"
319                        }
320                      }
321                    },
322                    "loc": {
323                      "start": {
324                        "line": 16,
325                        "column": 12,
326                        "program": "switch_alive_4.ets"
327                      },
328                      "end": {
329                        "line": 16,
330                        "column": 18,
331                        "program": "switch_alive_4.ets"
332                      }
333                    }
334                  }
335                ],
336                "returnType": {
337                  "type": "ETSPrimitiveType",
338                  "loc": {
339                    "start": {
340                      "line": 16,
341                      "column": 21,
342                      "program": "switch_alive_4.ets"
343                    },
344                    "end": {
345                      "line": 16,
346                      "column": 24,
347                      "program": "switch_alive_4.ets"
348                    }
349                  }
350                },
351                "body": {
352                  "type": "BlockStatement",
353                  "statements": [
354                    {
355                      "type": "SwitchStatement",
356                      "discriminant": {
357                        "type": "Identifier",
358                        "name": "s",
359                        "decorators": [],
360                        "loc": {
361                          "start": {
362                            "line": 17,
363                            "column": 10,
364                            "program": "switch_alive_4.ets"
365                          },
366                          "end": {
367                            "line": 17,
368                            "column": 11,
369                            "program": "switch_alive_4.ets"
370                          }
371                        }
372                      },
373                      "cases": [
374                        {
375                          "type": "SwitchCase",
376                          "test": {
377                            "type": "NumberLiteral",
378                            "value": 1,
379                            "loc": {
380                              "start": {
381                                "line": 18,
382                                "column": 8,
383                                "program": "switch_alive_4.ets"
384                              },
385                              "end": {
386                                "line": 18,
387                                "column": 9,
388                                "program": "switch_alive_4.ets"
389                              }
390                            }
391                          },
392                          "consequent": [
393                            {
394                              "type": "BreakStatement",
395                              "label": null,
396                              "loc": {
397                                "start": {
398                                  "line": 19,
399                                  "column": 4,
400                                  "program": "switch_alive_4.ets"
401                                },
402                                "end": {
403                                  "line": 20,
404                                  "column": 7,
405                                  "program": "switch_alive_4.ets"
406                                }
407                              }
408                            }
409                          ],
410                          "loc": {
411                            "start": {
412                              "line": 18,
413                              "column": 3,
414                              "program": "switch_alive_4.ets"
415                            },
416                            "end": {
417                              "line": 20,
418                              "column": 7,
419                              "program": "switch_alive_4.ets"
420                            }
421                          }
422                        },
423                        {
424                          "type": "SwitchCase",
425                          "test": {
426                            "type": "NumberLiteral",
427                            "value": 2,
428                            "loc": {
429                              "start": {
430                                "line": 20,
431                                "column": 8,
432                                "program": "switch_alive_4.ets"
433                              },
434                              "end": {
435                                "line": 20,
436                                "column": 9,
437                                "program": "switch_alive_4.ets"
438                              }
439                            }
440                          },
441                          "consequent": [
442                            {
443                              "type": "BreakStatement",
444                              "label": null,
445                              "loc": {
446                                "start": {
447                                  "line": 21,
448                                  "column": 4,
449                                  "program": "switch_alive_4.ets"
450                                },
451                                "end": {
452                                  "line": 22,
453                                  "column": 3,
454                                  "program": "switch_alive_4.ets"
455                                }
456                              }
457                            }
458                          ],
459                          "loc": {
460                            "start": {
461                              "line": 20,
462                              "column": 3,
463                              "program": "switch_alive_4.ets"
464                            },
465                            "end": {
466                              "line": 22,
467                              "column": 3,
468                              "program": "switch_alive_4.ets"
469                            }
470                          }
471                        }
472                      ],
473                      "loc": {
474                        "start": {
475                          "line": 17,
476                          "column": 2,
477                          "program": "switch_alive_4.ets"
478                        },
479                        "end": {
480                          "line": 22,
481                          "column": 3,
482                          "program": "switch_alive_4.ets"
483                        }
484                      }
485                    },
486                    {
487                      "type": "ReturnStatement",
488                      "argument": {
489                        "type": "NumberLiteral",
490                        "value": 1,
491                        "loc": {
492                          "start": {
493                            "line": 23,
494                            "column": 9,
495                            "program": "switch_alive_4.ets"
496                          },
497                          "end": {
498                            "line": 23,
499                            "column": 10,
500                            "program": "switch_alive_4.ets"
501                          }
502                        }
503                      },
504                      "loc": {
505                        "start": {
506                          "line": 23,
507                          "column": 2,
508                          "program": "switch_alive_4.ets"
509                        },
510                        "end": {
511                          "line": 23,
512                          "column": 10,
513                          "program": "switch_alive_4.ets"
514                        }
515                      }
516                    }
517                  ],
518                  "loc": {
519                    "start": {
520                      "line": 16,
521                      "column": 25,
522                      "program": "switch_alive_4.ets"
523                    },
524                    "end": {
525                      "line": 24,
526                      "column": 2,
527                      "program": "switch_alive_4.ets"
528                    }
529                  }
530                },
531                "loc": {
532                  "start": {
533                    "line": 16,
534                    "column": 10,
535                    "program": "switch_alive_4.ets"
536                  },
537                  "end": {
538                    "line": 24,
539                    "column": 2,
540                    "program": "switch_alive_4.ets"
541                  }
542                }
543              },
544              "loc": {
545                "start": {
546                  "line": 16,
547                  "column": 10,
548                  "program": "switch_alive_4.ets"
549                },
550                "end": {
551                  "line": 24,
552                  "column": 2,
553                  "program": "switch_alive_4.ets"
554                }
555              }
556            },
557            "overloads": [],
558            "decorators": [],
559            "loc": {
560              "start": {
561                "line": 16,
562                "column": 1,
563                "program": "switch_alive_4.ets"
564              },
565              "end": {
566                "line": 24,
567                "column": 2,
568                "program": "switch_alive_4.ets"
569              }
570            }
571          }
572        ],
573        "loc": {
574          "start": {
575            "line": 1,
576            "column": 1,
577            "program": "switch_alive_4.ets"
578          },
579          "end": {
580            "line": 1,
581            "column": 1,
582            "program": "switch_alive_4.ets"
583          }
584        }
585      },
586      "loc": {
587        "start": {
588          "line": 1,
589          "column": 1,
590          "program": "switch_alive_4.ets"
591        },
592        "end": {
593          "line": 1,
594          "column": 1,
595          "program": "switch_alive_4.ets"
596        }
597      }
598    }
599  ],
600  "loc": {
601    "start": {
602      "line": 1,
603      "column": 1,
604      "program": "switch_alive_4.ets"
605    },
606    "end": {
607      "line": 25,
608      "column": 1,
609      "program": "switch_alive_4.ets"
610    }
611  }
612}
613