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