public override IExpression Visit(IIfElseExpression expr, int context) { return(new IfElseExpression { Condition = Anonymize(expr.Condition), ThenExpression = Anonymize(expr.ThenExpression), ElseExpression = Anonymize(expr.ElseExpression) }); }
public void Visit(IIfElseExpression expr, SSTPrintingContext c) { c.Text("("); expr.Condition.Accept(this, c); c.Text(")").Space().Text("?").Space(); expr.ThenExpression.Accept(this, c); c.Space().Text(":").Space(); expr.ElseExpression.Accept(this, c); }
public virtual void Visit(IIfElseExpression expr, TContext context) { expr.Condition.Accept(this, context); expr.ThenExpression.Accept(this, context); expr.ElseExpression.Accept(this, context); }
public int Visit(IIfElseExpression expr, int context) { throw new NotImplementedException(); }