public SqlPrefixOperationNode Update(SqlOperatorNode op, ISqlNode right)
 {
     if (op == Operator && right == Right)
     {
         return(this);
     }
     return(new SqlPrefixOperationNode
     {
         Location = Location,
         Operator = op,
         Right = right
     });
 }
Exemple #2
0
 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
     });
 }
Exemple #3
0
 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
     });
 }
Exemple #4
0
 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
     });
 }