function IfStatement(node){var parent=context.getAncestors().pop();var consequents=void 0,alternate=void 0;/*
             * Fixing this would require splitting one statement into two, so no error should
             * be reported if this node is in a position where only one statement is allowed.
             */if(!astUtils.STATEMENT_LIST_PARENTS.has(parent.type)){return;}for(consequents=[];node.type==="IfStatement";node=node.alternate){if(!node.alternate){return;}consequents.push(node.consequent);alternate=node.alternate;}if(consequents.every(alwaysReturns)){displayReport(alternate);}}//--------------------------------------------------------------------------
Check the if statement
@returns {void}
@param {Node} node The node for the if statement to check
@private