Skip to content

Commit

Permalink
Make more static
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Apr 2, 2024
1 parent 4290774 commit c2a430c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public async Task<bool> HasSourceGeneratorsAsync(ProjectId projectId, Cancellati
AsyncLazy<bool> GetLazy(ProjectState projectState)
=> s_hasSourceGeneratorsMap.GetValue(
projectState,
projectState => AsyncLazy.Create(cancellationToken => ComputeHasSourceGeneratorsAsync(this, projectState, cancellationToken)));
projectState => AsyncLazy.Create(
static (tuple, cancellationToken) => ComputeHasSourceGeneratorsAsync(tuple.@this, tuple.projectState, cancellationToken),
(@this: this, projectState)));

static async Task<bool> ComputeHasSourceGeneratorsAsync(
SolutionCompilationState solution, ProjectState projectState, CancellationToken cancellationToken)
Expand Down

0 comments on commit c2a430c

Please sign in to comment.