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

Resolve() public method

public Resolve ( List targetList, string name, EntityType flags ) : bool
targetList List
name string
flags EntityType
return bool
        public bool Resolve(List targetList, string name, EntityType flags)
        {
            Declaration found = _declarations[name];
            if (null != found)
            {
                IEntity element = TypeSystemServices.GetEntity(found);
                if (NameResolutionService.IsFlagSet(flags, element.EntityType))
                {
                    targetList.Add(element);
                    return true;
                }
            }
            return false;
        }