public void Visit(AdditionOperator op)
        {
            var leftArgs = VisitChild(op.Left);
            var rightArgs = VisitChild(op.Rigth);

            _codeStack.Peek().Scope = rightArgs.Scope;
            _codeStack.Peek().CodeExpression = new CodeBinaryOperatorExpression(leftArgs.CodeExpression, CodeBinaryOperatorType.Add, rightArgs.CodeExpression);
        }
예제 #2
0
 public void Visit(AdditionOperator op, CommonTree tree)
 {
     Parent(tree).Children.Add(op);
     VisitChildren(tree);
 }