Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetMatchesByGenericity C# (CSharp) Метод

GetMatchesByGenericity() приватный Метод

private GetMatchesByGenericity ( ReferenceExpression node, Ambiguous candidates ) : List
node Boo.Lang.Compiler.Ast.ReferenceExpression
candidates Boo.Lang.Compiler.TypeSystem.Ambiguous
Результат List
        private List<IEntity> GetMatchesByGenericity(ReferenceExpression node, Ambiguous candidates)
        {
            bool isGenericReference = (node.ParentNode is GenericReferenceExpression);
            List<IEntity> matches = new List<IEntity>();
            foreach (IEntity candidate in candidates.Entities)
            {
                IType type = candidate as IType;
                bool isGenericType = (type != null && type.GenericInfo != null);
                if (isGenericType == isGenericReference)
                {
                    matches.Add(candidate);
                }
            }
            return matches;
        }
ProcessMethodBodies