1 write to SolutionState
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.cs (1)
68SolutionState = solution;
45 references to SolutionState
Microsoft.CodeAnalysis.Workspaces (45)
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)
101public SolutionServices Services => this.SolutionState.Services; 111Contract.ThrowIfFalse(this.SolutionState.ProjectStates 127if (newSolutionState == this.SolutionState && 165if (stateChange.NewSolutionState == this.SolutionState) 173/// except that it will still fork even if newSolutionState is unchanged from <see cref="SolutionState"/>. 326var newSolutionState = this.SolutionState.AddProjects(projectInfos); 366var newSolutionState = this.SolutionState.RemoveProjects(projectIds); 368var originalDependencyGraph = this.SolutionState.GetProjectDependencyGraph(); 410this.SolutionState.WithProjectAssemblyName(projectId, assemblyName), 421this.SolutionState.WithProjectOutputFilePath(projectId, outputFilePath), 431this.SolutionState.WithProjectOutputRefFilePath(projectId, outputRefFilePath), 441this.SolutionState.WithProjectCompilationOutputInfo(projectId, info), 451this.SolutionState.WithProjectDefaultNamespace(projectId, defaultNamespace), 461this.SolutionState.WithProjectChecksumAlgorithm(projectId, checksumAlgorithm), 472this.SolutionState.WithProjectName(projectId, name), 482this.SolutionState.WithProjectFilePath(projectId, filePath), 492this.SolutionState.WithProjectCompilationOptions(projectId, options), 501var stateChange = this.SolutionState.WithProjectParseOptions(projectId, options); 527this.SolutionState.WithHasAllInformation(projectId, hasAllInformation), 537this.SolutionState.WithRunAnalyzers(projectId, runAnalyzers), 547this.SolutionState.WithHasSdkCodeStyleAnalyzers(projectId, hasSdkCodeStyleAnalyzers), 557this.SolutionState.WithProjectDocumentsOrder(projectId, documentIds), 566var oldProject = SolutionState.GetRequiredProjectState(projectId); 602var oldProjectState = SolutionState.GetRequiredProjectState(projectId); 1602var allDocumentIds = @this.SolutionState.GetRelatedDocumentIds(documentId, includeDifferentLanguages); 1611var documentState = @this.SolutionState.GetRequiredDocumentState(currentDocumentId); 1639var oldProjectState = currentState.SolutionState.GetRequiredProjectState(documentId.ProjectId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
496var referencedProject = compilationState.SolutionState.GetProjectState(projectReference.ProjectId); 1041if (compilationState.SolutionState.ContainsProject(dependentProjectReference.ProjectId)) 1078if (compilationState.SolutionState.ContainsProject(dependentProjectReference.ProjectId))
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;