internal static SearchDeclaredElementUsagesRequest CreateRequest(IDataContext context, ICollection <DeclaredElementInstance> elements, ICollection <DeclaredElementInstance> initialTargets) { var searchDomain = SearchDomainContextUtil.GetSearchDomainContext(context) .GetDefaultDomain().SearchDomain; var typeParams = TypeParameterUtil.GetTypeParametersFromContext(context); return(new SearchGenericUsagesRequest(elements, initialTargets, searchDomain, typeParams)); }
public static SearchImplementationsRequest CreateRequest(IDataContext dataContext, DeclaredElementTypeUsageInfo element, DeclaredElementTypeUsageInfo initialTarget) { var originTypeElement = TypeParameterUtil.GetOriginTypeElement(dataContext, initialTarget); var searchDomain = SearchDomainContextUtil.GetSearchDomainContext(dataContext) .GetDefaultDomain().SearchDomain; var typeParams = TypeParameterUtil.GetTypeParametersFromContext(dataContext); return(new SearchGenericImplementationsRequest(element, originTypeElement, searchDomain, typeParams)); }