Boo.Lang.Compiler.TypeSystem.GenericConstructedType.Resolve C# (CSharp) Method

Resolve() public method

public Resolve ( List targetList, string name, EntityType filter ) : bool
targetList List
name string
filter EntityType
return bool
        public bool Resolve(List targetList, string name, EntityType filter)
        {
            // Resolve name using definition, and then map the matching members
            List definitionMatches = new List();
            if (_definition.Resolve(definitionMatches, name, filter))
            {
                foreach (IEntity match in definitionMatches)
                {
                    if(GenericMapping.EntityNeedsMapping(match))
                    {
                        targetList.AddUnique(GenericMapping.Map(match));
                    }
                    else
                    {
                        targetList.AddUnique(match);
                    }
                }
                return true;
            }
            return false;
        }