1 write to SolutionState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.cs (1)
68
SolutionState
= solution;
45 references to SolutionState
Microsoft.CodeAnalysis.Workspaces (45)
Workspace\Solution\Solution.cs (1)
70
internal SolutionState SolutionState => CompilationState.
SolutionState
;
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
133
/// cref="Compilation"/> provided to any clients of the <see cref="
SolutionState
"/> (for example, through
136
/// stores extra information in it about that compilation that the <see cref="
SolutionState
"/> can be
Workspace\Solution\SolutionCompilationState.cs (27)
101
public SolutionServices Services => this.
SolutionState
.Services;
111
Contract.ThrowIfFalse(this.
SolutionState
.SortedProjectStates
127
if (newSolutionState == this.
SolutionState
&&
165
if (stateChange.NewSolutionState == this.
SolutionState
)
173
/// except that it will still fork even if newSolutionState is unchanged from <see cref="
SolutionState
"/>.
326
var newSolutionState = this.
SolutionState
.AddProjects(projectInfos);
366
var newSolutionState = this.
SolutionState
.RemoveProjects(projectIds);
368
var originalDependencyGraph = this.
SolutionState
.GetProjectDependencyGraph();
410
this.
SolutionState
.WithProjectAssemblyName(projectId, assemblyName),
421
this.
SolutionState
.WithProjectOutputFilePath(projectId, outputFilePath),
431
this.
SolutionState
.WithProjectOutputRefFilePath(projectId, outputRefFilePath),
441
this.
SolutionState
.WithProjectCompilationOutputInfo(projectId, info),
451
this.
SolutionState
.WithProjectDefaultNamespace(projectId, defaultNamespace),
461
this.
SolutionState
.WithProjectChecksumAlgorithm(projectId, checksumAlgorithm),
472
this.
SolutionState
.WithProjectName(projectId, name),
482
this.
SolutionState
.WithProjectFilePath(projectId, filePath),
492
this.
SolutionState
.WithProjectCompilationOptions(projectId, options),
501
var stateChange = this.
SolutionState
.WithProjectParseOptions(projectId, options);
527
this.
SolutionState
.WithHasAllInformation(projectId, hasAllInformation),
537
this.
SolutionState
.WithRunAnalyzers(projectId, runAnalyzers),
547
this.
SolutionState
.WithHasSdkCodeStyleAnalyzers(projectId, hasSdkCodeStyleAnalyzers),
557
this.
SolutionState
.WithProjectDocumentsOrder(projectId, documentIds),
566
var oldProject =
SolutionState
.GetRequiredProjectState(projectId);
602
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
1693
var allDocumentIds = @this.
SolutionState
.GetRelatedDocumentIds(documentId, includeDifferentLanguages);
1702
var documentState = @this.
SolutionState
.GetRequiredDocumentState(currentDocumentId);
1730
var oldProjectState = currentState.
SolutionState
.GetRequiredProjectState(documentId.ProjectId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
499
var referencedProject = compilationState.
SolutionState
.GetProjectState(projectReference.ProjectId);
1050
if (compilationState.
SolutionState
.ContainsProject(dependentProjectReference.ProjectId))
1087
if (compilationState.
SolutionState
.ContainsProject(dependentProjectReference.ProjectId))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
82
var solution = compilationState.
SolutionState
;
272
var telemetryCollector = compilationState.
SolutionState
.Services.GetService<ISourceGeneratorTelemetryCollectorWorkspaceService>();
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
204
var services = compilationState.
SolutionState
.Services;
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
24
var projectState = this.
SolutionState
.GetProjectState(documentId.ProjectId);
Workspace\Solution\SolutionCompilationState_Checksum.cs (6)
23
/// <see cref="
SolutionState
"/>, as well as the checksums for <see cref="FrozenSourceGeneratedDocumentStates"/>
109
using (Logger.LogBlock(FunctionId.SolutionCompilationState_ComputeChecksumsAsync, this.
SolutionState
.FilePath, cancellationToken))
116
solutionStateChecksum = await this.
SolutionState
.GetChecksumAsync(cancellationToken).ConfigureAwait(false);
121
var stateChecksums = await this.
SolutionState
.GetStateChecksumsAsync(projectId, cancellationToken).ConfigureAwait(false);
126
var serializer = this.
SolutionState
.Services.GetRequiredService<ISerializerService>();
156
foreach (var projectState in this.
SolutionState
.SortedProjectStates)
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
106
var projectState = this.
SolutionState
.GetRequiredProjectState(projectId);
Workspace\Solution\StateChecksums.cs (1)
169
var solutionState = compilationState.
SolutionState
;