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); }
public void Visit(AdditionOperator op, CommonTree tree) { Parent(tree).Children.Add(op); VisitChildren(tree); }