Skip to content

Commit

Permalink
Document state storage refactoring follow-up (#51569)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat authored Mar 1, 2021
1 parent cc1a56c commit d452bf3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 68 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/Workspaces/Core/Portable/Workspace/Solution/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public async ValueTask<IEnumerable<SourceGeneratedDocument>> GetSourceGeneratedD
{
var generatedDocumentStates = await _solution.State.GetSourceGeneratedDocumentStatesAsync(this.State, cancellationToken).ConfigureAwait(false);

// return an interator to avoid eagerly allocating all the document instances
// return an iterator to avoid eagerly allocating all the document instances
return generatedDocumentStates.States.Select(state =>
ImmutableHashMapExtensions.GetOrAdd(ref _idToSourceGeneratedDocumentMap, state.Id, s_createSourceGeneratedDocumentFunction, (state, this)))!;
}
Expand Down

0 comments on commit d452bf3

Please sign in to comment.