Implemented interface member:
property
ProjectState
Microsoft.CodeAnalysis.SolutionCompilationState.ICompilationTracker.ProjectState
1 write to ProjectState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
65this.ProjectState = project;
48 references to ProjectState
Microsoft.CodeAnalysis.Workspaces (48)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (34)
245s_logBuildCompilationAsync, ProjectState, cancellationToken)) 317var initialProjectState = this.ProjectState.RemoveAllNormalDocuments(); 323foreach (var chunk in this.ProjectState.DocumentStates.GetStatesInCompilationOrder().Chunk(TranslationAction.AddDocumentsAction.AddDocumentsBatchSize)) 362var hasSourceGenerators = await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false); 485var hasSuccessfullyLoaded = this.ProjectState.HasAllInformation && 486(this.ProjectState.MetadataReferences.Count > 0 || 491newReferences.AddRange(this.ProjectState.MetadataReferences); 493foreach (var projectReference in this.ProjectState.ProjectReferences) 507Debug.Assert(this.ProjectState.IsSubmission); 534projectReference, this.ProjectState, includeCrossLanguage: true, cancellationToken).ConfigureAwait(false); 546projectReference, this.ProjectState, includeCrossLanguage: false, cancellationToken).ConfigureAwait(false); 559projectReference, this.ProjectState, includeCrossLanguage: true, cancellationToken).ConfigureAwait(false); 624this.ProjectState.Id, 649var compilationFactory = this.ProjectState.LanguageServices.GetRequiredService<ICompilationFactoryService>(); 651if (this.ProjectState.IsSubmission) 654this.ProjectState.AssemblyName, 655this.ProjectState.CompilationOptions!, 656this.ProjectState.HostObjectType); 661this.ProjectState.AssemblyName, 662this.ProjectState.CompilationOptions!); 733this.ProjectState, 752: new RegularCompilationTracker(this.ProjectState, newFinalState, skeletonReferenceCacheToClone: _skeletonReferenceCache); 767foreach (var documentState in this.ProjectState.DocumentStates.GetStatesInCompilationOrder()) 775var frozenProjectState = this.ProjectState 812? this.ProjectState 850if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 861if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 888if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 926ValidateCompilationTreesMatchesProjectState(finalState.FinalCompilationWithGeneratedDocuments, ProjectState, finalState.GeneratorInfo); 932: this.ProjectState; 1032var projectState = this.ProjectState; 1071var projectState = this.ProjectState; 1111var projectChecksum = await this.ProjectState.GetChecksumAsync(cancellationToken).ConfigureAwait(false); 1119var transitiveDependencies = solution.GetProjectDependencyGraph().GetProjectsThatThisProjectTransitivelyDependsOn(this.ProjectState.Id);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (14)
98var projectId = this.ProjectState.Id; 144oldGeneratedDocuments.States.All(kvp => kvp.Value.ParseOptions.Equals(this.ProjectState.ParseOptions))) 196ProjectState.ParseOptions!, 197ProjectState.LanguageServices, 216.WithParseOptions(this.ProjectState.ParseOptions!) 237if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 241generatorDriver ??= CreateGeneratorDriver(this.ProjectState); 243CheckGeneratorDriver(generatorDriver, this.ProjectState); 255foreach (var documentState in ProjectState.DocumentStates.States) 275g => GetAnalyzerReference(this.ProjectState, g)); 297var generatorAnalyzerReference = GetAnalyzerReference(this.ProjectState, generatorResult.Generator); 311.WithParseOptions(this.ProjectState.ParseOptions!); 328ProjectState.Id, 339ProjectState.LanguageServices,