Esempio n. 1
0
 public virtual IExpression Clone(ModulusOperator op)
 {
     return(new ModulusOperator()
     {
         Left = CloneAndReturn(op.Left),
         Right = CloneValue(op.Left, op.Right)
     }.Normalize());
 }
 public override void Visit(ModulusOperator op)
 {
     Writer.Write("mod(");
     op.Left.Visit(this);
     Writer.Write(",");
     op.Right.Visit(this);
     Writer.Write(")");
 }
Esempio n. 3
0
 public virtual void Visit(ModulusOperator op)
 {
     AddParenthesesIfNeeded(op, () =>
     {
         op.Left.Visit(this);
         Writer.Write(" % ");
         op.Right.Visit(this);
     });
 }
Esempio n. 4
0
 public virtual void Visit(ModulusOperator op)
 {
     op.Left.Visit(this);
     op.Right.Visit(this);
 }
 void IExpressionVisitor.Visit(ModulusOperator op)
 {
     throw new NotSupportedException();
 }
Esempio n. 6
0
 void IExpressionVisitor.Visit(ModulusOperator op)
 {
     _clone = Clone(op);
 }