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;
50 references to ProjectState
Microsoft.CodeAnalysis.Workspaces (50)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (33)
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); 532var metadataService = ProjectState.LanguageServices.SolutionServices.GetRequiredService<IMetadataService>(); 547projectReference, this.ProjectState, includeCrossLanguage: true, cancellationToken).ConfigureAwait(false); 559projectReference, this.ProjectState, includeCrossLanguage: false, cancellationToken).ConfigureAwait(false); 572projectReference, this.ProjectState, includeCrossLanguage: true, cancellationToken).ConfigureAwait(false); 637this.ProjectState.Id, 662var compilationFactory = this.ProjectState.LanguageServices.GetRequiredService<ICompilationFactoryService>(); 664if (this.ProjectState.IsSubmission) 667this.ProjectState.AssemblyName, 668this.ProjectState.CompilationOptions!, 669this.ProjectState.HostObjectType); 674this.ProjectState.AssemblyName, 675this.ProjectState.CompilationOptions!); 749this.ProjectState, 771: new RegularCompilationTracker(this.ProjectState, newFinalState, skeletonReferenceCacheToClone: _skeletonReferenceCache); 786foreach (var documentState in this.ProjectState.DocumentStates.GetStatesInCompilationOrder()) 794var frozenProjectState = this.ProjectState 831? this.ProjectState 869if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 880if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 907if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 945ValidateCompilationTreesMatchesProjectState(finalState.FinalCompilationWithGeneratedDocuments, ProjectState, finalState.GeneratorInfo); 951: this.ProjectState; 1050var projectState = this.ProjectState; 1089var projectState = this.ProjectState;
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (16)
97var presence = await compilationState.GetProjectGeneratorPresenceAsync(ProjectState.Id, cancellationToken).ConfigureAwait(false); 109var projectId = this.ProjectState.Id; 183oldGeneratedDocuments.States.All(kvp => kvp.Value.ParseOptions.Equals(this.ProjectState.ParseOptions))) 239ProjectState.ParseOptions!, 240ProjectState.LanguageServices, 259.WithParseOptions(this.ProjectState.ParseOptions!) 281if (!await compilationState.HasSourceGeneratorsAsync(this.ProjectState.Id, cancellationToken).ConfigureAwait(false)) 292foreach (var documentState in ProjectState.DocumentStates.States) 306var generatorDriverCache = compilationState.GetGeneratorDriverInitializationCache(this.ProjectState.Id); 310generatorDriver = await generatorDriverCache.CreateAndRunGeneratorDriverAsync(this.ProjectState, compilationToRunGeneratorsOn, ShouldGeneratorRun, cancellationToken).ConfigureAwait(false); 324CheckGeneratorDriver(generatorDriver, this.ProjectState); 331g => GetAnalyzerReference(this.ProjectState, g)); 356var generatorAnalyzerReference = GetAnalyzerReference(this.ProjectState, generatorResult.Generator); 370.WithParseOptions(this.ProjectState.ParseOptions!); 387ProjectState.Id, 398ProjectState.LanguageServices,
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
40public ProjectState ProjectState => UnderlyingTracker.ProjectState;