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)
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,
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
39public ProjectState ProjectState => UnderlyingTracker.ProjectState;