/// <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))); }
/// <summary> /// Visits the expression. /// </summary> /// <param name="expression">Expression.</param> public void Visit(NotExpression expression) { expression.Child.Accept(this); }
/// <summary> /// Visits the expression. /// </summary> /// <param name="expression">Expression.</param> public override void Visit(NotExpression expression) { IsNegated = true; expression.Child.Accept(this); IsNegated = false; }