Implemented interface member:
property
ProjectState
Microsoft.CodeAnalysis.SolutionCompilationState.ICompilationTracker.ProjectState
1 write to ProjectState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
66this.ProjectState = project;
48 references to ProjectState
Microsoft.CodeAnalysis.Workspaces (48)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (32)
249s_logBuildCompilationAsync, ProjectState, cancellationToken)) 321var initialProjectState = this.ProjectState.RemoveAllNormalDocuments(); 327foreach (var chunk in this.ProjectState.DocumentStates.GetStatesInCompilationOrder().Chunk(TranslationAction.AddDocumentsAction.AddDocumentsBatchSize)) 366var hasSourceGenerators = await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false); 489var hasSuccessfullyLoaded = this.ProjectState.HasAllInformation && 490(this.ProjectState.MetadataReferences.Count > 0 || 495newReferences.AddRange(this.ProjectState.MetadataReferences); 497foreach (var projectReference in this.ProjectState.ProjectReferences) 511Debug.Assert(this.ProjectState.IsSubmission); 538projectReference, this.ProjectState, includeCrossLanguage: true, cancellationToken).ConfigureAwait(false); 550projectReference, this.ProjectState, includeCrossLanguage: false, cancellationToken).ConfigureAwait(false); 563projectReference, this.ProjectState, includeCrossLanguage: true, cancellationToken).ConfigureAwait(false); 628this.ProjectState.Id, 653var compilationFactory = this.ProjectState.LanguageServices.GetRequiredService<ICompilationFactoryService>(); 655if (this.ProjectState.IsSubmission) 658this.ProjectState.AssemblyName, 659this.ProjectState.CompilationOptions!, 660this.ProjectState.HostObjectType); 665this.ProjectState.AssemblyName, 666this.ProjectState.CompilationOptions!); 740this.ProjectState, 762: new RegularCompilationTracker(this.ProjectState, newFinalState, skeletonReferenceCacheToClone: _skeletonReferenceCache); 777foreach (var documentState in this.ProjectState.DocumentStates.GetStatesInCompilationOrder()) 785var frozenProjectState = this.ProjectState 822? this.ProjectState 860if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 871if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 898if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 936ValidateCompilationTreesMatchesProjectState(finalState.FinalCompilationWithGeneratedDocuments, ProjectState, finalState.GeneratorInfo); 942: this.ProjectState; 1041var projectState = this.ProjectState; 1080var projectState = this.ProjectState;
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (15)
99var presence = await compilationState.GetProjectGeneratorPresenceAsync(ProjectState.Id, cancellationToken).ConfigureAwait(false); 126var projectId = this.ProjectState.Id; 175oldGeneratedDocuments.States.All(kvp => kvp.Value.ParseOptions.Equals(this.ProjectState.ParseOptions))) 227ProjectState.ParseOptions!, 228ProjectState.LanguageServices, 247.WithParseOptions(this.ProjectState.ParseOptions!) 269if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 276generatorDriver ??= CreateGeneratorDriver(this.ProjectState); 278CheckGeneratorDriver(generatorDriver, this.ProjectState); 290foreach (var documentState in ProjectState.DocumentStates.States) 310g => GetAnalyzerReference(this.ProjectState, g)); 335var generatorAnalyzerReference = GetAnalyzerReference(this.ProjectState, generatorResult.Generator); 349.WithParseOptions(this.ProjectState.ParseOptions!); 366ProjectState.Id, 377ProjectState.LanguageServices,
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
40public ProjectState ProjectState => UnderlyingTracker.ProjectState;