2 instantiations of FinalCompilationTrackerState
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
227
return new
FinalCompilationTrackerState
(
243
:
new
(creationPolicy,
31 references to FinalCompilationTrackerState
Microsoft.CodeAnalysis.Workspaces (31)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (6)
22
/// finally reaches <see cref="
FinalCompilationTrackerState
" />.
135
/// cref="
FinalCompilationTrackerState
"/>. This is because <see cref="
FinalCompilationTrackerState
"/>
156
/// cref="Compilation"/>, which in the <see cref="
FinalCompilationTrackerState
"/> case will be the
212
public static
FinalCompilationTrackerState
Create(
240
public
FinalCompilationTrackerState
WithCreationPolicy(CreationPolicy creationPolicy)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (25)
108
if (this.ReadState() is not
FinalCompilationTrackerState
finalState)
132
Contract.ThrowIfTrue(forkedTrackerState is
FinalCompilationTrackerState
);
148
FinalCompilationTrackerState
finalState => (new Lazy<Compilation>(() => finalState.CompilationWithoutGeneratedDocuments), new CancellableLazy<Compilation?>(finalState.FinalCompilationWithGeneratedDocuments)),
167
FinalCompilationTrackerState
=> [],
199
if (state is
FinalCompilationTrackerState
finalState)
234
var
finalState = await GetOrBuildFinalStateAsync(compilationState, cancellationToken: cancellationToken).ConfigureAwait(false);
238
private async Task<
FinalCompilationTrackerState
> GetOrBuildFinalStateAsync(
252
if (state is
FinalCompilationTrackerState
finalState)
276
async Task<
FinalCompilationTrackerState
> BuildFinalStateAsync()
284
if (state is
FinalCompilationTrackerState
finalState)
447
async Task<
FinalCompilationTrackerState
> FinalizeCompilationAsync(InProgressState inProgressState)
471
async Task<
FinalCompilationTrackerState
> FinalizeCompilationWorkerAsync(InProgressState inProgressState)
617
var
finalState =
FinalCompilationTrackerState
.Create(
669
return this.ReadState() is
FinalCompilationTrackerState
finalState
677
var
finalState = await GetOrBuildFinalStateAsync(
705
if (state is
FinalCompilationTrackerState
{ GeneratedDocumentsUpToDate: true })
723
FinalCompilationTrackerState
finalState => new InProgressState(
747
if (state is
FinalCompilationTrackerState
finalState)
749
var
newFinalState = finalState.WithCreationPolicy(desiredCreationPolicy);
853
var
finalState = await GetOrBuildFinalStateAsync(
864
var
finalState = await GetOrBuildFinalStateAsync(
891
var
finalState = await GetOrBuildFinalStateAsync(
904
return state is
FinalCompilationTrackerState
finalState ? finalState.GeneratorInfo.Documents.GetState(documentId) : null;
924
if (state is
FinalCompilationTrackerState
finalState)