示例#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(")");
 }
示例#3
0
 public virtual void Visit(ModulusOperator op)
 {
     AddParenthesesIfNeeded(op, () =>
     {
         op.Left.Visit(this);
         Writer.Write(" % ");
         op.Right.Visit(this);
     });
 }
示例#4
0
 public virtual void Visit(ModulusOperator op)
 {
     op.Left.Visit(this);
     op.Right.Visit(this);
 }
 void IExpressionVisitor.Visit(ModulusOperator op)
 {
     throw new NotSupportedException();
 }
示例#6
0
 void IExpressionVisitor.Visit(ModulusOperator op)
 {
     _clone = Clone(op);
 }