• 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_num_compare_char.ets"
16            },
17            "end": {
18              "line": 1,
19              "column": 1,
20              "program": "switch_num_compare_char.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": "switch_num_compare_char.ets"
125              },
126              "end": {
127                "line": 1,
128                "column": 1,
129                "program": "switch_num_compare_char.ets"
130              }
131            }
132          },
133          {
134            "type": "MethodDefinition",
135            "key": {
136              "type": "Identifier",
137              "name": "main",
138              "decorators": [],
139              "loc": {
140                "start": {
141                  "line": 16,
142                  "column": 10,
143                  "program": "switch_num_compare_char.ets"
144                },
145                "end": {
146                  "line": 16,
147                  "column": 14,
148                  "program": "switch_num_compare_char.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": "main",
164                  "decorators": [],
165                  "loc": {
166                    "start": {
167                      "line": 16,
168                      "column": 10,
169                      "program": "switch_num_compare_char.ets"
170                    },
171                    "end": {
172                      "line": 16,
173                      "column": 14,
174                      "program": "switch_num_compare_char.ets"
175                    }
176                  }
177                },
178                "generator": false,
179                "async": false,
180                "expression": false,
181                "params": [],
182                "body": {
183                  "type": "BlockStatement",
184                  "statements": [
185                    {
186                      "type": "VariableDeclaration",
187                      "declarations": [
188                        {
189                          "type": "VariableDeclarator",
190                          "id": {
191                            "type": "Identifier",
192                            "name": "a",
193                            "decorators": [],
194                            "loc": {
195                              "start": {
196                                "line": 17,
197                                "column": 9,
198                                "program": "switch_num_compare_char.ets"
199                              },
200                              "end": {
201                                "line": 17,
202                                "column": 10,
203                                "program": "switch_num_compare_char.ets"
204                              }
205                            }
206                          },
207                          "init": {
208                            "type": "NumberLiteral",
209                            "value": 97,
210                            "loc": {
211                              "start": {
212                                "line": 17,
213                                "column": 13,
214                                "program": "switch_num_compare_char.ets"
215                              },
216                              "end": {
217                                "line": 17,
218                                "column": 15,
219                                "program": "switch_num_compare_char.ets"
220                              }
221                            }
222                          },
223                          "loc": {
224                            "start": {
225                              "line": 17,
226                              "column": 9,
227                              "program": "switch_num_compare_char.ets"
228                            },
229                            "end": {
230                              "line": 17,
231                              "column": 15,
232                              "program": "switch_num_compare_char.ets"
233                            }
234                          }
235                        }
236                      ],
237                      "kind": "let",
238                      "loc": {
239                        "start": {
240                          "line": 17,
241                          "column": 5,
242                          "program": "switch_num_compare_char.ets"
243                        },
244                        "end": {
245                          "line": 17,
246                          "column": 15,
247                          "program": "switch_num_compare_char.ets"
248                        }
249                      }
250                    },
251                    {
252                      "type": "SwitchStatement",
253                      "discriminant": {
254                        "type": "Identifier",
255                        "name": "a",
256                        "decorators": [],
257                        "loc": {
258                          "start": {
259                            "line": 18,
260                            "column": 13,
261                            "program": "switch_num_compare_char.ets"
262                          },
263                          "end": {
264                            "line": 18,
265                            "column": 14,
266                            "program": "switch_num_compare_char.ets"
267                          }
268                        }
269                      },
270                      "cases": [
271                        {
272                          "type": "SwitchCase",
273                          "test": {
274                            "type": "CharLiteral",
275                            "value": "a",
276                            "loc": {
277                              "start": {
278                                "line": 19,
279                                "column": 14,
280                                "program": "switch_num_compare_char.ets"
281                              },
282                              "end": {
283                                "line": 19,
284                                "column": 18,
285                                "program": "switch_num_compare_char.ets"
286                              }
287                            }
288                          },
289                          "consequent": [
290                            {
291                              "type": "BreakStatement",
292                              "label": null,
293                              "loc": {
294                                "start": {
295                                  "line": 20,
296                                  "column": 13,
297                                  "program": "switch_num_compare_char.ets"
298                                },
299                                "end": {
300                                  "line": 20,
301                                  "column": 19,
302                                  "program": "switch_num_compare_char.ets"
303                                }
304                              }
305                            }
306                          ],
307                          "loc": {
308                            "start": {
309                              "line": 19,
310                              "column": 9,
311                              "program": "switch_num_compare_char.ets"
312                            },
313                            "end": {
314                              "line": 20,
315                              "column": 19,
316                              "program": "switch_num_compare_char.ets"
317                            }
318                          }
319                        },
320                        {
321                          "type": "SwitchCase",
322                          "test": {
323                            "type": "NumberLiteral",
324                            "value": 98,
325                            "loc": {
326                              "start": {
327                                "line": 21,
328                                "column": 14,
329                                "program": "switch_num_compare_char.ets"
330                              },
331                              "end": {
332                                "line": 21,
333                                "column": 16,
334                                "program": "switch_num_compare_char.ets"
335                              }
336                            }
337                          },
338                          "consequent": [
339                            {
340                              "type": "BreakStatement",
341                              "label": null,
342                              "loc": {
343                                "start": {
344                                  "line": 22,
345                                  "column": 13,
346                                  "program": "switch_num_compare_char.ets"
347                                },
348                                "end": {
349                                  "line": 22,
350                                  "column": 19,
351                                  "program": "switch_num_compare_char.ets"
352                                }
353                              }
354                            }
355                          ],
356                          "loc": {
357                            "start": {
358                              "line": 21,
359                              "column": 9,
360                              "program": "switch_num_compare_char.ets"
361                            },
362                            "end": {
363                              "line": 22,
364                              "column": 19,
365                              "program": "switch_num_compare_char.ets"
366                            }
367                          }
368                        }
369                      ],
370                      "loc": {
371                        "start": {
372                          "line": 18,
373                          "column": 5,
374                          "program": "switch_num_compare_char.ets"
375                        },
376                        "end": {
377                          "line": 23,
378                          "column": 6,
379                          "program": "switch_num_compare_char.ets"
380                        }
381                      }
382                    }
383                  ],
384                  "loc": {
385                    "start": {
386                      "line": 16,
387                      "column": 17,
388                      "program": "switch_num_compare_char.ets"
389                    },
390                    "end": {
391                      "line": 24,
392                      "column": 2,
393                      "program": "switch_num_compare_char.ets"
394                    }
395                  }
396                },
397                "loc": {
398                  "start": {
399                    "line": 16,
400                    "column": 10,
401                    "program": "switch_num_compare_char.ets"
402                  },
403                  "end": {
404                    "line": 24,
405                    "column": 2,
406                    "program": "switch_num_compare_char.ets"
407                  }
408                }
409              },
410              "loc": {
411                "start": {
412                  "line": 16,
413                  "column": 10,
414                  "program": "switch_num_compare_char.ets"
415                },
416                "end": {
417                  "line": 24,
418                  "column": 2,
419                  "program": "switch_num_compare_char.ets"
420                }
421              }
422            },
423            "overloads": [],
424            "decorators": [],
425            "loc": {
426              "start": {
427                "line": 16,
428                "column": 1,
429                "program": "switch_num_compare_char.ets"
430              },
431              "end": {
432                "line": 24,
433                "column": 2,
434                "program": "switch_num_compare_char.ets"
435              }
436            }
437          }
438        ],
439        "loc": {
440          "start": {
441            "line": 1,
442            "column": 1,
443            "program": "switch_num_compare_char.ets"
444          },
445          "end": {
446            "line": 1,
447            "column": 1,
448            "program": "switch_num_compare_char.ets"
449          }
450        }
451      },
452      "loc": {
453        "start": {
454          "line": 1,
455          "column": 1,
456          "program": "switch_num_compare_char.ets"
457        },
458        "end": {
459          "line": 1,
460          "column": 1,
461          "program": "switch_num_compare_char.ets"
462        }
463      }
464    }
465  ],
466  "loc": {
467    "start": {
468      "line": 1,
469      "column": 1,
470      "program": "switch_num_compare_char.ets"
471    },
472    "end": {
473      "line": 25,
474      "column": 1,
475      "program": "switch_num_compare_char.ets"
476    }
477  }
478}
479