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

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