ICSharpCode.NRefactory.CSharp.Resolver.FindReferences.GetSearchScopeForTypeParameter C# (CSharp) Method

GetSearchScopeForTypeParameter() private method

private GetSearchScopeForTypeParameter ( ITypeParameter tp ) : SearchScope
tp ITypeParameter
return SearchScope
		SearchScope GetSearchScopeForTypeParameter(ITypeParameter tp)
		{
			var searchScope = new SearchScope(c => new FindTypeParameterReferencesNavigator(tp));
			var compilationProvider = tp as ICompilationProvider;
			if (compilationProvider != null)
				searchScope.declarationCompilation = compilationProvider.Compilation;
			searchScope.topLevelTypeDefinition = GetTopLevelTypeDefinition(tp.Owner);
			searchScope.accessibility = Accessibility.Private;
			return searchScope;
		}