Example #1
0
 public void Visit(AdditionExpression ae)
 {
     _sb.Append("(");
     ae.Left.Accept(this);
     _sb.Append("+");
     ae.Right.Accept(this);
     _sb.Append(")");
 }
Example #2
0
        public void Visit(AdditionExpression ae)
        {
            ae.Left.Accept(this);
            var a = Result;

            ae.Right.Accept(this);
            var b = Result;

            Result = a + b;
        }