public override void Visit(AdditionExpression ae) { sb.Append("("); ae.LHS.Accept(this); sb.Append("+"); ae.RHS.Accept(this); sb.Append(")"); }
public void SimpleAddition() { var simple = new AdditionExpression(new Value(2), new Value(3)); var ep = new ExpressionPrinter(); ep.Visit(simple); Assert.That(ep.ToString(), Is.EqualTo("(2+3)")); }
public abstract void Visit(AdditionExpression value);