AgentMulder.ReSharper.Domain.Patterns.RegistrationPatternBase.GetAllMatchedExpressions C# (CSharp) Method

GetAllMatchedExpressions() private method

private GetAllMatchedExpressions ( ITreeNode element ) : IEnumerable
element ITreeNode
return IEnumerable
        private IEnumerable<IInvocationExpression> GetAllMatchedExpressions(ITreeNode element)
        {
            var invocationExpression = element as IInvocationExpression;
            if (invocationExpression == null)
            {
                return EmptyList<IInvocationExpression>.InstanceList;
            }

            return invocationExpression.GetAllExpressions().Where(expression => matcher.QuickMatch(expression));
        }