• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "SwitchStatement",
6      "discriminant": {
7        "type": "Identifier",
8        "name": "key",
9        "loc": {
10          "start": {
11            "line": 17,
12            "column": 9
13          },
14          "end": {
15            "line": 17,
16            "column": 12
17          }
18        }
19      },
20      "cases": [
21        {
22          "type": "SwitchCase",
23          "test": {
24            "type": "Identifier",
25            "name": "value",
26            "loc": {
27              "start": {
28                "line": 18,
29                "column": 10
30              },
31              "end": {
32                "line": 18,
33                "column": 15
34              }
35            }
36          },
37          "consequent": [
38            {
39              "type": "BreakStatement",
40              "label": null,
41              "loc": {
42                "start": {
43                  "line": 19,
44                  "column": 9
45                },
46                "end": {
47                  "line": 19,
48                  "column": 15
49                }
50              }
51            }
52          ],
53          "loc": {
54            "start": {
55              "line": 18,
56              "column": 5
57            },
58            "end": {
59              "line": 19,
60              "column": 15
61            }
62          }
63        },
64        {
65          "type": "SwitchCase",
66          "test": null,
67          "consequent": [
68            {
69              "type": "BreakStatement",
70              "label": null,
71              "loc": {
72                "start": {
73                  "line": 22,
74                  "column": 9
75                },
76                "end": {
77                  "line": 22,
78                  "column": 15
79                }
80              }
81            }
82          ],
83          "loc": {
84            "start": {
85              "line": 21,
86              "column": 5
87            },
88            "end": {
89              "line": 22,
90              "column": 15
91            }
92          }
93        }
94      ],
95      "loc": {
96        "start": {
97          "line": 17,
98          "column": 1
99        },
100        "end": {
101          "line": 23,
102          "column": 2
103        }
104      }
105    },
106    {
107      "type": "SwitchStatement",
108      "discriminant": {
109        "type": "Identifier",
110        "name": "test",
111        "loc": {
112          "start": {
113            "line": 25,
114            "column": 9
115          },
116          "end": {
117            "line": 25,
118            "column": 13
119          }
120        }
121      },
122      "cases": [],
123      "loc": {
124        "start": {
125          "line": 25,
126          "column": 1
127        },
128        "end": {
129          "line": 25,
130          "column": 17
131        }
132      }
133    },
134    {
135      "type": "SwitchStatement",
136      "discriminant": {
137        "type": "Identifier",
138        "name": "t",
139        "loc": {
140          "start": {
141            "line": 27,
142            "column": 9
143          },
144          "end": {
145            "line": 27,
146            "column": 10
147          }
148        }
149      },
150      "cases": [
151        {
152          "type": "SwitchCase",
153          "test": null,
154          "consequent": [],
155          "loc": {
156            "start": {
157              "line": 28,
158              "column": 5
159            },
160            "end": {
161              "line": 28,
162              "column": 13
163            }
164          }
165        }
166      ],
167      "loc": {
168        "start": {
169          "line": 27,
170          "column": 1
171        },
172        "end": {
173          "line": 29,
174          "column": 2
175        }
176      }
177    },
178    {
179      "type": "SwitchStatement",
180      "discriminant": {
181        "type": "Identifier",
182        "name": "a",
183        "loc": {
184          "start": {
185            "line": 32,
186            "column": 2
187          },
188          "end": {
189            "line": 32,
190            "column": 3
191          }
192        }
193      },
194      "cases": [
195        {
196          "type": "SwitchCase",
197          "test": {
198            "type": "Identifier",
199            "name": "a",
200            "loc": {
201              "start": {
202                "line": 35,
203                "column": 1
204              },
205              "end": {
206                "line": 35,
207                "column": 2
208              }
209            }
210          },
211          "consequent": [],
212          "loc": {
213            "start": {
214              "line": 34,
215              "column": 1
216            },
217            "end": {
218              "line": 35,
219              "column": 3
220            }
221          }
222        },
223        {
224          "type": "SwitchCase",
225          "test": null,
226          "consequent": [],
227          "loc": {
228            "start": {
229              "line": 36,
230              "column": 1
231            },
232            "end": {
233              "line": 37,
234              "column": 2
235            }
236          }
237        }
238      ],
239      "loc": {
240        "start": {
241          "line": 31,
242          "column": 1
243        },
244        "end": {
245          "line": 38,
246          "column": 2
247        }
248      }
249    }
250  ],
251  "loc": {
252    "start": {
253      "line": 1,
254      "column": 1
255    },
256    "end": {
257      "line": 38,
258      "column": 2
259    }
260  }
261}
262