2 instantiations of FinalCompilationTrackerState
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
227return 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 212public static FinalCompilationTrackerState Create( 240public FinalCompilationTrackerState WithCreationPolicy(CreationPolicy creationPolicy)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (25)
108if (this.ReadState() is not FinalCompilationTrackerState finalState) 132Contract.ThrowIfTrue(forkedTrackerState is FinalCompilationTrackerState); 148FinalCompilationTrackerState finalState => (new Lazy<Compilation>(() => finalState.CompilationWithoutGeneratedDocuments), new CancellableLazy<Compilation?>(finalState.FinalCompilationWithGeneratedDocuments)), 167FinalCompilationTrackerState => [], 199if (state is FinalCompilationTrackerState finalState) 234var finalState = await GetOrBuildFinalStateAsync(compilationState, cancellationToken: cancellationToken).ConfigureAwait(false); 238private async Task<FinalCompilationTrackerState> GetOrBuildFinalStateAsync( 252if (state is FinalCompilationTrackerState finalState) 276async Task<FinalCompilationTrackerState> BuildFinalStateAsync() 284if (state is FinalCompilationTrackerState finalState) 447async Task<FinalCompilationTrackerState> FinalizeCompilationAsync(InProgressState inProgressState) 471async Task<FinalCompilationTrackerState> FinalizeCompilationWorkerAsync(InProgressState inProgressState) 617var finalState = FinalCompilationTrackerState.Create( 669return this.ReadState() is FinalCompilationTrackerState finalState 677var finalState = await GetOrBuildFinalStateAsync( 705if (state is FinalCompilationTrackerState { GeneratedDocumentsUpToDate: true }) 723FinalCompilationTrackerState finalState => new InProgressState( 747if (state is FinalCompilationTrackerState finalState) 749var newFinalState = finalState.WithCreationPolicy(desiredCreationPolicy); 853var finalState = await GetOrBuildFinalStateAsync( 864var finalState = await GetOrBuildFinalStateAsync( 891var finalState = await GetOrBuildFinalStateAsync( 904return state is FinalCompilationTrackerState finalState ? finalState.GeneratorInfo.Documents.GetState(documentId) : null; 924if (state is FinalCompilationTrackerState finalState)