Exemplo n.º 1
0
        public AssignmentExpressionNode Assignment(MemberExpressionNode leftValue, ExpressionNode rightValue, IEnumerable<AttributeNode> attributes)
        {
            if (leftValue == null)
                ThrowHelper.ThrowArgumentNullException(() => leftValue);

            if (rightValue == null)
                ThrowHelper.ThrowArgumentNullException(() => rightValue);

            return new AssignmentExpressionNode(leftValue, rightValue, attributes);
        }
        public AssignmentExpressionNode(MemberExpressionNode variable, ExpressionNode rightValue, IEnumerable<AttributeNode> attributes)
            : base(attributes)
        {
            if (variable == null)
                ThrowHelper.ThrowArgumentNullException(() => variable);
            if (rightValue == null)
                ThrowHelper.ThrowArgumentNullException(() => rightValue);

            LeftValue = variable;
            RightValue = rightValue;

            AddChildren(LeftValue, RightValue);
        }
Exemplo n.º 3
0
 public AssignmentExpressionNode Assignment(MemberExpressionNode leftValue, ExpressionNode rightValue)
 {
     return Assignment(leftValue, rightValue, new AttributeNode[0]);
 }