public SqlPrefixOperationNode Update(SqlOperatorNode op, ISqlNode right) { if (op == Operator && right == Right) { return(this); } return(new SqlPrefixOperationNode { Location = Location, Operator = op, Right = right }); }
public SqlInfixOperationNode Update(ISqlNode left, SqlOperatorNode op, ISqlNode right) { if (left == Left && op == Operator && right == Right) { return(this); } return(new SqlInfixOperationNode { Location = Location, Left = left, Operator = op, Right = right }); }
public SqlSetNode Update(ISqlNode v, SqlOperatorNode op, ISqlNode right) { if (v == Variable && op == Operator && right == Right) { return(this); } return(new SqlSetNode { Location = Location, Right = right, Operator = op, Variable = v }); }
public SqlJoinNode Update(ISqlNode left, SqlOperatorNode op, ISqlNode right, ISqlNode cond) { if (left == Left && op == Operator && right == Right && cond == OnCondition) { return(this); } return(new SqlJoinNode { Location = Location, Left = left, Operator = op, Right = right, OnCondition = cond }); }