function prepareIfChecks(node){var preparedChecks=[];do{preparedChecks.push(prepareCheck(node,node.consequent,"if","condition"));if(node.alternate&&node.alternate.type!=="IfStatement"){preparedChecks.push(prepareCheck(node,node.alternate,"else"));break;}node=node.alternate;}while(node);if(consistent){/*
                 * If any node should have or already have braces, make sure they
                 * all have braces.
                 * If all nodes shouldn't have braces, make sure they don't.
                 */var expected=preparedChecks.some(function(preparedCheck){if(preparedCheck.expected!==null){return preparedCheck.expected;}return preparedCheck.actual;});preparedChecks.forEach(function(preparedCheck){preparedCheck.expected=expected;});}return preparedChecks;}//--------------------------------------------------------------------------
Prepares to check the bodies of a "if", "else if" and "else" chain.
@param {ASTNode} node The first IfStatement node of the chain.
@returns {Object[]} prepared checks for each body of the chain. See `prepareCheck` for more
  information.