function testForAssign(node){if(node.test&&node.test.type==="AssignmentExpression"&&(node.type==="ForStatement"?!astUtils.isParenthesised(sourceCode,node.test):!isParenthesisedTwice(node.test))){// must match JSHint's error message
context.report({node:node,loc:node.test.loc.start,message:"Expected a conditional expression and instead saw an assignment."});}}
Check a conditional statement's test expression for top-level assignments that are not enclosed in parentheses.
@param {!Object} node The node for the conditional statement.
@returns {void}