protected override MemberAssignment VisitMemberAssignment(MemberAssignment node)
        {
            ArgumentUtility.CheckNotNull("node", node);

            var vistedNode = base.VisitMemberAssignment(node);

            // Testing the parent expression is only required if all children are evaluatable
            if (_isCurrentSubtreeEvaluatable)
            {
                _isCurrentSubtreeEvaluatable = _evaluatableExpressionFilter.IsEvaluatableMemberAssignment(node);
            }

            return(vistedNode);
        }
Пример #2
0
        protected override MemberAssignment VisitMemberAssignment(MemberAssignment node)
        {
            if (node == null)
            {
                throw new ArgumentNullException(nameof(node));
            }

            var vistedNode = base.VisitMemberAssignment(node);

            // Testing the parent expression is only required if all children are evaluatable
            if (IsCurrentSubtreeEvaluatable)
            {
                IsCurrentSubtreeEvaluatable = EvaluatableExpressionFilter.IsEvaluatableMemberAssignment(node);
            }

            return(vistedNode);
        }