1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ExpressionStatement", 6 "expression": { 7 "type": "ConditionalExpression", 8 "test": { 9 "type": "Identifier", 10 "name": "a", 11 "decorators": [], 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 1 16 }, 17 "end": { 18 "line": 17, 19 "column": 2 20 } 21 } 22 }, 23 "consequent": { 24 "type": "Identifier", 25 "name": "b", 26 "decorators": [], 27 "loc": { 28 "start": { 29 "line": 17, 30 "column": 5 31 }, 32 "end": { 33 "line": 17, 34 "column": 6 35 } 36 } 37 }, 38 "alternate": { 39 "type": "Identifier", 40 "name": "c", 41 "decorators": [], 42 "loc": { 43 "start": { 44 "line": 17, 45 "column": 9 46 }, 47 "end": { 48 "line": 17, 49 "column": 10 50 } 51 } 52 }, 53 "loc": { 54 "start": { 55 "line": 17, 56 "column": 1 57 }, 58 "end": { 59 "line": 17, 60 "column": 10 61 } 62 } 63 }, 64 "loc": { 65 "start": { 66 "line": 17, 67 "column": 1 68 }, 69 "end": { 70 "line": 17, 71 "column": 10 72 } 73 } 74 }, 75 { 76 "type": "ExpressionStatement", 77 "expression": { 78 "type": "ConditionalExpression", 79 "test": { 80 "type": "BinaryExpression", 81 "operator": "==", 82 "left": { 83 "type": "Identifier", 84 "name": "a", 85 "decorators": [], 86 "loc": { 87 "start": { 88 "line": 19, 89 "column": 1 90 }, 91 "end": { 92 "line": 19, 93 "column": 2 94 } 95 } 96 }, 97 "right": { 98 "type": "NumberLiteral", 99 "value": 1, 100 "loc": { 101 "start": { 102 "line": 19, 103 "column": 6 104 }, 105 "end": { 106 "line": 19, 107 "column": 7 108 } 109 } 110 }, 111 "loc": { 112 "start": { 113 "line": 19, 114 "column": 1 115 }, 116 "end": { 117 "line": 19, 118 "column": 7 119 } 120 } 121 }, 122 "consequent": { 123 "type": "Identifier", 124 "name": "a", 125 "decorators": [], 126 "loc": { 127 "start": { 128 "line": 20, 129 "column": 5 130 }, 131 "end": { 132 "line": 20, 133 "column": 6 134 } 135 } 136 }, 137 "alternate": { 138 "type": "NumberLiteral", 139 "value": 42, 140 "loc": { 141 "start": { 142 "line": 21, 143 "column": 5 144 }, 145 "end": { 146 "line": 21, 147 "column": 7 148 } 149 } 150 }, 151 "loc": { 152 "start": { 153 "line": 19, 154 "column": 1 155 }, 156 "end": { 157 "line": 21, 158 "column": 7 159 } 160 } 161 }, 162 "loc": { 163 "start": { 164 "line": 19, 165 "column": 1 166 }, 167 "end": { 168 "line": 21, 169 "column": 7 170 } 171 } 172 }, 173 { 174 "type": "VariableDeclaration", 175 "declarations": [ 176 { 177 "type": "VariableDeclarator", 178 "id": { 179 "type": "Identifier", 180 "name": "res", 181 "decorators": [], 182 "loc": { 183 "start": { 184 "line": 23, 185 "column": 5 186 }, 187 "end": { 188 "line": 23, 189 "column": 8 190 } 191 } 192 }, 193 "init": { 194 "type": "ConditionalExpression", 195 "test": { 196 "type": "BinaryExpression", 197 "operator": "==", 198 "left": { 199 "type": "Identifier", 200 "name": "a", 201 "decorators": [], 202 "loc": { 203 "start": { 204 "line": 23, 205 "column": 12 206 }, 207 "end": { 208 "line": 23, 209 "column": 13 210 } 211 } 212 }, 213 "right": { 214 "type": "NumberLiteral", 215 "value": 1, 216 "loc": { 217 "start": { 218 "line": 23, 219 "column": 17 220 }, 221 "end": { 222 "line": 23, 223 "column": 18 224 } 225 } 226 }, 227 "loc": { 228 "start": { 229 "line": 23, 230 "column": 12 231 }, 232 "end": { 233 "line": 23, 234 "column": 18 235 } 236 } 237 }, 238 "consequent": { 239 "type": "Identifier", 240 "name": "a", 241 "decorators": [], 242 "loc": { 243 "start": { 244 "line": 23, 245 "column": 21 246 }, 247 "end": { 248 "line": 23, 249 "column": 22 250 } 251 } 252 }, 253 "alternate": { 254 "type": "NumberLiteral", 255 "value": 42, 256 "loc": { 257 "start": { 258 "line": 23, 259 "column": 25 260 }, 261 "end": { 262 "line": 23, 263 "column": 27 264 } 265 } 266 }, 267 "loc": { 268 "start": { 269 "line": 23, 270 "column": 11 271 }, 272 "end": { 273 "line": 23, 274 "column": 28 275 } 276 } 277 }, 278 "loc": { 279 "start": { 280 "line": 23, 281 "column": 5 282 }, 283 "end": { 284 "line": 23, 285 "column": 28 286 } 287 } 288 } 289 ], 290 "kind": "var", 291 "loc": { 292 "start": { 293 "line": 23, 294 "column": 1 295 }, 296 "end": { 297 "line": 23, 298 "column": 29 299 } 300 } 301 }, 302 { 303 "type": "ExpressionStatement", 304 "expression": { 305 "type": "ConditionalExpression", 306 "test": { 307 "type": "LogicalExpression", 308 "operator": "||", 309 "left": { 310 "type": "LogicalExpression", 311 "operator": "&&", 312 "left": { 313 "type": "Identifier", 314 "name": "a", 315 "decorators": [], 316 "loc": { 317 "start": { 318 "line": 25, 319 "column": 1 320 }, 321 "end": { 322 "line": 25, 323 "column": 2 324 } 325 } 326 }, 327 "right": { 328 "type": "Identifier", 329 "name": "b", 330 "decorators": [], 331 "loc": { 332 "start": { 333 "line": 25, 334 "column": 6 335 }, 336 "end": { 337 "line": 25, 338 "column": 7 339 } 340 } 341 }, 342 "loc": { 343 "start": { 344 "line": 25, 345 "column": 1 346 }, 347 "end": { 348 "line": 25, 349 "column": 7 350 } 351 } 352 }, 353 "right": { 354 "type": "BinaryExpression", 355 "operator": "==", 356 "left": { 357 "type": "Identifier", 358 "name": "c", 359 "decorators": [], 360 "loc": { 361 "start": { 362 "line": 25, 363 "column": 11 364 }, 365 "end": { 366 "line": 25, 367 "column": 12 368 } 369 } 370 }, 371 "right": { 372 "type": "Identifier", 373 "name": "d", 374 "decorators": [], 375 "loc": { 376 "start": { 377 "line": 25, 378 "column": 16 379 }, 380 "end": { 381 "line": 25, 382 "column": 17 383 } 384 } 385 }, 386 "loc": { 387 "start": { 388 "line": 25, 389 "column": 11 390 }, 391 "end": { 392 "line": 25, 393 "column": 17 394 } 395 } 396 }, 397 "loc": { 398 "start": { 399 "line": 25, 400 "column": 1 401 }, 402 "end": { 403 "line": 25, 404 "column": 17 405 } 406 } 407 }, 408 "consequent": { 409 "type": "Identifier", 410 "name": "e", 411 "decorators": [], 412 "loc": { 413 "start": { 414 "line": 25, 415 "column": 20 416 }, 417 "end": { 418 "line": 25, 419 "column": 21 420 } 421 } 422 }, 423 "alternate": { 424 "type": "Identifier", 425 "name": "f", 426 "decorators": [], 427 "loc": { 428 "start": { 429 "line": 25, 430 "column": 24 431 }, 432 "end": { 433 "line": 25, 434 "column": 25 435 } 436 } 437 }, 438 "loc": { 439 "start": { 440 "line": 25, 441 "column": 1 442 }, 443 "end": { 444 "line": 25, 445 "column": 25 446 } 447 } 448 }, 449 "loc": { 450 "start": { 451 "line": 25, 452 "column": 1 453 }, 454 "end": { 455 "line": 25, 456 "column": 25 457 } 458 } 459 } 460 ], 461 "loc": { 462 "start": { 463 "line": 1, 464 "column": 1 465 }, 466 "end": { 467 "line": 26, 468 "column": 1 469 } 470 } 471} 472