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