"Replaced if statement with ||"), JsBinaryOperator.OR,
x.getIfExpr(), elseExpr);
ctx.replaceMe(accept(op.makeStmt()));
} else if (thenIsEmpty && !elseIsEmpty) {
// Convert "if (a()) {} else {stuff}" => "if (!a()) {stuff}".
JsUnaryOperation negatedOperation = new JsPrefixOperation(
makeSourceInfo(x, "Simplified if with empty then statement"),
JsUnaryOperator.NOT, x.getIfExpr());
JsIf newIf = new JsIf(makeSourceInfo(x,
"Simplified if with empty then statement"), negatedOperation,
elseStmt, null);