bundles/org.eclipse.orion.client.javascript/web/eslint/lib/rules/no-extra-parens.js
function containsAssignment(node) {
			if (node.type === "AssignmentExpression") {
				return true;
			} else if (node.type === "ConditionalExpression" &&
				(node.consequent.type === "AssignmentExpression" || node.alternate.type === "AssignmentExpression")) {
				return true;
			} else if ((node.left && node.left.type === "AssignmentExpression") ||
				(node.right && node.right.type === "AssignmentExpression")) {
				return true;
			}

			return false;
		}
function containsAssignment(node) {
			if (node.type === "AssignmentExpression") {
				return true;
			} else if (node.type === "ConditionalExpression" &&
				(node.consequent.type === "AssignmentExpression" || node.alternate.type === "AssignmentExpression")) {
				return true;
			} else if ((node.left && node.left.type === "AssignmentExpression") ||
				(node.right && node.right.type === "AssignmentExpression")) {
				return true;
			}

			return false;
		}
function containsAssignment ( node ) { if ( node . type === "AssignmentExpression" ) { return true ; } else if ( node . type === "ConditionalExpression" && ( node . consequent . type === "AssignmentExpression" || node . alternate . type === "AssignmentExpression" ) ) { return true ; } else if ( ( node . left && node . left . type === "AssignmentExpression" ) || ( node . right && node . right . type === "AssignmentExpression" ) ) { return true ; } return false ; }
Determines if a node is or contains an assignment expression
@param {ASTNode} node - The node to be checked.
@returns {boolean} True if the node is or contains an assignment expression.
@private
Determines if a node is or contains an assignment expression