protected override Expression VisitLambda(LambdaExpression expression)
#endif
        {
            ArgumentUtility.CheckNotNull("expression", expression);

            var vistedExpression = base.VisitLambda(expression);

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

            return(vistedExpression);
        }
Пример #2
0
        protected override Expression VisitLambda(LambdaExpression expression)
#endif
        {
            if (expression == null)
            {
                throw new ArgumentNullException(nameof(expression));
            }

            var vistedExpression = base.VisitLambda(expression);

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

            return(vistedExpression);
        }