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;
47 references to ProjectState
Microsoft.CodeAnalysis.Workspaces (47)
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 (14)
100var projectId = this.ProjectState.Id; 146oldGeneratedDocuments.States.All(kvp => kvp.Value.ParseOptions.Equals(this.ProjectState.ParseOptions))) 198ProjectState.ParseOptions!, 199ProjectState.LanguageServices, 218.WithParseOptions(this.ProjectState.ParseOptions!) 239if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 243generatorDriver ??= CreateGeneratorDriver(this.ProjectState); 245CheckGeneratorDriver(generatorDriver, this.ProjectState); 257foreach (var documentState in ProjectState.DocumentStates.States) 277g => GetAnalyzerReference(this.ProjectState, g)); 299var generatorAnalyzerReference = GetAnalyzerReference(this.ProjectState, generatorResult.Generator); 313.WithParseOptions(this.ProjectState.ParseOptions!); 330ProjectState.Id, 341ProjectState.LanguageServices,
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
40public ProjectState ProjectState => UnderlyingTracker.ProjectState;