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;
}