Skip to content

Commit

Permalink
nrt
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Nov 29, 2022
1 parent 0e91a9a commit b7061e4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ internal abstract partial class AbstractAddImportFeatureService<TSimpleNameSynta
/// </summary>
private class SourceSymbolsProjectSearchScope : ProjectSearchScope
{
private readonly ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>> _projectToAssembly;
private readonly ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> _projectToAssembly;

public SourceSymbolsProjectSearchScope(
AbstractAddImportFeatureService<TSimpleNameSyntax> provider,
ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol>> projectToAssembly,
ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly,
Project project, bool ignoreCase, CancellationToken cancellationToken)
: base(provider, project, ignoreCase, cancellationToken)
{
Expand Down Expand Up @@ -54,9 +54,9 @@ protected override async Task<ImmutableArray<ISymbol>> FindDeclarationsAsync(
return declarations;
}

private static AsyncLazy<IAssemblySymbol> CreateLazyAssembly(Project project)
private static AsyncLazy<IAssemblySymbol?> CreateLazyAssembly(Project project)
{
return new AsyncLazy<IAssemblySymbol>(
return new AsyncLazy<IAssemblySymbol?>(
async c =>
{
var compilation = await project.GetRequiredCompilationAsync(c).ConfigureAwait(false);
Expand Down

0 comments on commit b7061e4

Please sign in to comment.