protected override Expression VisitTry(TryExpression expression)
        {
            ArgumentUtility.CheckNotNull("expression", expression);

            var vistedExpression = base.VisitTry(expression);

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

            return(vistedExpression);
        }
Exemple #2
0
        protected override Expression VisitTry(TryExpression expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException(nameof(expression));
            }

            var vistedExpression = base.VisitTry(expression);

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

            return(vistedExpression);
        }