protected override Expression VisitInvocation(InvocationExpression expression) { ArgumentUtility.CheckNotNull("expression", expression); var vistedExpression = base.VisitInvocation(expression); // Testing the parent expression is only required if all children are evaluatable if (_isCurrentSubtreeEvaluatable) { _isCurrentSubtreeEvaluatable = _evaluatableExpressionFilter.IsEvaluatableInvocation(expression); } return(vistedExpression); }
protected override Expression VisitInvocation(InvocationExpression expression) { if (expression == null) { throw new ArgumentNullException(nameof(expression)); } var vistedExpression = base.VisitInvocation(expression); // Testing the parent expression is only required if all children are evaluatable if (IsCurrentSubtreeEvaluatable) { IsCurrentSubtreeEvaluatable = EvaluatableExpressionFilter.IsEvaluatableInvocation(expression); } return(vistedExpression); }