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