1 write to SolutionState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.cs (1)
67
SolutionState
= solution;
46 references to SolutionState
Microsoft.CodeAnalysis.Workspaces (46)
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)
100
public SolutionServices Services => this.
SolutionState
.Services;
110
Contract.ThrowIfFalse(this.
SolutionState
.ProjectStates
126
if (newSolutionState == this.
SolutionState
&&
164
if (stateChange.NewSolutionState == this.
SolutionState
)
172
/// except that it will still fork even if newSolutionState is unchanged from <see cref="
SolutionState
"/>.
325
var newSolutionState = this.
SolutionState
.AddProjects(projectInfos);
365
var newSolutionState = this.
SolutionState
.RemoveProjects(projectIds);
367
var originalDependencyGraph = this.
SolutionState
.GetProjectDependencyGraph();
409
this.
SolutionState
.WithProjectAssemblyName(projectId, assemblyName),
420
this.
SolutionState
.WithProjectOutputFilePath(projectId, outputFilePath),
430
this.
SolutionState
.WithProjectOutputRefFilePath(projectId, outputRefFilePath),
440
this.
SolutionState
.WithProjectCompilationOutputInfo(projectId, info),
450
this.
SolutionState
.WithProjectDefaultNamespace(projectId, defaultNamespace),
460
this.
SolutionState
.WithProjectChecksumAlgorithm(projectId, checksumAlgorithm),
471
this.
SolutionState
.WithProjectName(projectId, name),
481
this.
SolutionState
.WithProjectFilePath(projectId, filePath),
491
this.
SolutionState
.WithProjectCompilationOptions(projectId, options),
500
var stateChange = this.
SolutionState
.WithProjectParseOptions(projectId, options);
526
this.
SolutionState
.WithHasAllInformation(projectId, hasAllInformation),
536
this.
SolutionState
.WithRunAnalyzers(projectId, runAnalyzers),
546
this.
SolutionState
.WithHasSdkCodeStyleAnalyzers(projectId, hasSdkCodeStyleAnalyzers),
556
this.
SolutionState
.WithProjectDocumentsOrder(projectId, documentIds),
565
var oldProject =
SolutionState
.GetRequiredProjectState(projectId);
601
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
1593
var allDocumentIds = @this.
SolutionState
.GetRelatedDocumentIds(documentId, includeDifferentLanguages);
1602
var documentState = @this.
SolutionState
.GetRequiredDocumentState(currentDocumentId);
1630
var oldProjectState = currentState.
SolutionState
.GetRequiredProjectState(documentId.ProjectId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
495
var referencedProject = compilationState.
SolutionState
.GetProjectState(projectReference.ProjectId);
1041
if (compilationState.
SolutionState
.ContainsProject(dependentProjectReference.ProjectId))
1078
if (compilationState.
SolutionState
.ContainsProject(dependentProjectReference.ProjectId))
1099
arg: (self: this, compilationState.
SolutionState
)),
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)
25
/// <see cref="
SolutionState
"/>, as well as the checksums for <see cref="FrozenSourceGeneratedDocumentStates"/>
111
using (Logger.LogBlock(FunctionId.SolutionCompilationState_ComputeChecksumsAsync, this.
SolutionState
.FilePath, cancellationToken))
118
solutionStateChecksum = await this.
SolutionState
.GetChecksumAsync(cancellationToken).ConfigureAwait(false);
123
var stateChecksums = await this.
SolutionState
.GetStateChecksumsAsync(projectId, cancellationToken).ConfigureAwait(false);
134
var serializer = this.
SolutionState
.Services.GetRequiredService<ISerializerService>();
165
foreach (var (projectId, projectState) in this.
SolutionState
.ProjectStates)
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
106
var projectState = this.
SolutionState
.GetRequiredProjectState(projectId);
Workspace\Solution\StateChecksums.cs (1)
191
var solutionState = compilationState.
SolutionState
;