예제 #1
0
 /// <summary>
 /// Visits and transforms the expression.
 /// </summary>
 /// <param name="expression">Source expression.</param>
 /// <returns>Transformed expression.</returns>
 public IExpression Visit(NotExpression expression)
 {
     return(new NotExpression(expression.Child.Accept(this)));
 }
예제 #2
0
 /// <summary>
 /// Visits the expression.
 /// </summary>
 /// <param name="expression">Expression.</param>
 public void Visit(NotExpression expression)
 {
     expression.Child.Accept(this);
 }
예제 #3
0
 /// <summary>
 /// Visits the expression.
 /// </summary>
 /// <param name="expression">Expression.</param>
 public override void Visit(NotExpression expression)
 {
     IsNegated = true;
     expression.Child.Accept(this);
     IsNegated = false;
 }