コード例 #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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public AssignmentExpressionNode Assignment(MemberExpressionNode leftValue, ExpressionNode rightValue)
 {
     return Assignment(leftValue, rightValue, new AttributeNode[0]);
 }