提交 ed22caa3 编写于 作者: C CyrusNajmabadi

Don't expose private type unnecessarily.

上级 2fe03af4
......@@ -38,7 +38,7 @@ public Task ReportProgressAsync(int current, int maximum)
/// <summary>
/// Forwards IFindReferencesProgress calls to an IFindUsagesContext instance.
/// </summary>
internal class FindReferencesProgressAdapter : ForegroundThreadAffinitizedObject, IStreamingFindReferencesProgress
private class FindReferencesProgressAdapter : ForegroundThreadAffinitizedObject, IStreamingFindReferencesProgress
{
private readonly Solution _solution;
private readonly IFindUsagesContext _context;
......
......@@ -88,11 +88,21 @@ public async Task FindImplementationsAsync(Document document, int position, IFin
return null;
}
return await FindSymbolReferencesAsync(
return await FindSymbolReferencesWorkerAsync(
context, symbolAndProject?.symbol, symbolAndProject?.project, cancellationToken).ConfigureAwait(false);
}
public static async Task<FindReferencesProgressAdapter> FindSymbolReferencesAsync(
/// <summary>
/// Public helper that we use from features like ObjectBrowser which start with a symbol
/// and want to push all the references to it into the Streaming-Find-References window.
/// </summary>
public static Task FindSymbolReferencesAsync(
IFindUsagesContext context, ISymbol symbol, Project project, CancellationToken cancellationToken)
{
return FindSymbolReferencesWorkerAsync(context, symbol, project, cancellationToken);
}
private static async Task<FindReferencesProgressAdapter> FindSymbolReferencesWorkerAsync(
IFindUsagesContext context, ISymbol symbol, Project project, CancellationToken cancellationToken)
{
context.SetSearchTitle(string.Format(EditorFeaturesResources._0_references,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册