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