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