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