3 instantiations of SolutionState
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\Solution.cs (1)
65new SolutionState(workspace.Kind, workspace.Services.SolutionServices, solutionAttributes, options, analyzerReferences, fallbackAnalyzerOptions),
Workspace\Solution\SolutionState.cs (2)
198return new SolutionState( 232return new SolutionState(
79 references to SolutionState
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
36var currentSolution = _workspace.CurrentSolution.SolutionState;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.SolutionCreator.cs (1)
155var solutionState = solution.SolutionState;
Host\SolutionAssetCache.cs (1)
178var solutionState = compilationState.SolutionState;
Microsoft.CodeAnalysis.Workspaces (76)
Workspace\Host\PersistentStorage\ProjectKey.cs (1)
37public static ProjectKey ToProjectKey(SolutionState solutionState, ProjectState projectState)
Workspace\Host\PersistentStorage\SolutionKey.cs (1)
24public static SolutionKey ToSolutionKey(SolutionState solutionState)
Workspace\Solution\ProjectState.AnalyzerConfigOptionsCache.cs (1)
19/// This cache is stored on <see cref="ProjectState"/> and needs to be invalidated whenever <see cref="SolutionState.FallbackAnalyzerOptions"/> for the language of the project change,
Workspace\Solution\Solution.cs (1)
70internal SolutionState SolutionState => CompilationState.SolutionState;
Workspace\Solution\SolutionCompilationState.cs (53)
41public SolutionState SolutionState { get; } 60SolutionState solution, 89SolutionState solution, 116SolutionState newSolutionState, 143/// <inheritdoc cref="SolutionState.ForkProject"/> 156/// <inheritdoc cref="SolutionState.ForkProject"/> 179var newSolutionState = stateChange.NewSolutionState; 319/// <inheritdoc cref="SolutionState.AddProjects(ArrayBuilder{ProjectInfo})"/> 325var newSolutionState = this.SolutionState.AddProjects(projectInfos); 358/// <inheritdoc cref="SolutionState.RemoveProjects"/> 365var newSolutionState = this.SolutionState.RemoveProjects(projectIds); 404/// <inheritdoc cref="SolutionState.WithProjectAssemblyName"/> 416/// <inheritdoc cref="SolutionState.WithProjectOutputFilePath"/> 425/// <inheritdoc cref="SolutionState.WithProjectOutputRefFilePath"/> 435/// <inheritdoc cref="SolutionState.WithProjectCompilationOutputInfo"/> 445/// <inheritdoc cref="SolutionState.WithProjectCompilationOutputInfo"/> 455/// <inheritdoc cref="SolutionState.WithProjectChecksumAlgorithm"/> 466/// <inheritdoc cref="SolutionState.WithProjectName"/> 476/// <inheritdoc cref="SolutionState.WithProjectFilePath"/> 486/// <inheritdoc cref="SolutionState.WithProjectCompilationOptions"/> 496/// <inheritdoc cref="SolutionState.WithProjectParseOptions"/> 521/// <inheritdoc cref="SolutionState.WithHasAllInformation"/> 531/// <inheritdoc cref="SolutionState.WithRunAnalyzers"/> 541/// <inheritdoc cref="SolutionState.WithHasSdkCodeStyleAnalyzers"/> 551/// <inheritdoc cref="SolutionState.WithProjectDocumentsOrder"/> 658/// <inheritdoc cref="SolutionState.AddProjectReferences"/> 668/// <inheritdoc cref="SolutionState.RemoveProjectReference"/> 677/// <inheritdoc cref="SolutionState.WithProjectReferences"/> 687/// <inheritdoc cref="SolutionState.AddMetadataReferences"/> 697/// <inheritdoc cref="SolutionState.RemoveMetadataReference"/> 706/// <inheritdoc cref="SolutionState.WithProjectMetadataReferences"/> 740/// <inheritdoc cref="SolutionState.WithProjectAnalyzerReferences"/> 771/// <inheritdoc cref="SolutionState.WithDocumentAttributes{TValue}"/> 778SolutionState.WithDocumentAttributes(documentId, arg, updateAttributes), documentId); 807var oldProjectState = SolutionState.GetRequiredProjectState(projectId); 906/// <inheritdoc cref="SolutionState.WithAdditionalDocumentText(DocumentId, SourceText, PreservationMode)"/> 914/// <inheritdoc cref="SolutionState.WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)"/> 921/// <inheritdoc cref="SolutionState.WithFallbackAnalyzerOptions(ImmutableDictionary{string, StructuredAnalyzerConfigOptions})"/> 923=> Branch(SolutionState.WithFallbackAnalyzerOptions(options)); 925/// <inheritdoc cref="SolutionState.WithDocumentText(DocumentId, TextAndVersion, PreservationMode)"/> 933/// <inheritdoc cref="SolutionState.WithAdditionalDocumentText(DocumentId, TextAndVersion, PreservationMode)"/> 941/// <inheritdoc cref="SolutionState.WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)"/> 973/// <inheritdoc cref="SolutionState.WithDocumentSourceCodeKind"/> 981/// <inheritdoc cref="SolutionState.UpdateDocumentTextLoader"/> 996/// <inheritdoc cref="SolutionState.UpdateAdditionalDocumentTextLoader"/> 1011/// <inheritdoc cref="SolutionState.UpdateAnalyzerConfigDocumentTextLoader"/> 1087private static readonly Func<ProjectId, SolutionState, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker; 1089private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId, SolutionState solution) 1459var dependencyGraph = SolutionState.CreateDependencyGraph(this.SolutionState.ProjectIds, newIdToProjectStateMap); 1674SolutionState.CheckContainsProject(projectId); 1675var projectState = SolutionState.GetRequiredProjectState(projectId); 1708var oldProjectState = SolutionState.GetRequiredProjectState(projectId); 1721var stateChange = SolutionState.ForkProject(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1106private async Task<Checksum> ComputeDependentChecksumAsync(SolutionState solution, CancellationToken cancellationToken)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
82var solution = compilationState.SolutionState;
Workspace\Solution\SolutionState.cs (13)
24SolutionState NewSolutionState, 165internal SolutionState Branch( 218public SolutionState WithNewWorkspace( 323public SolutionState AddProjects(ArrayBuilder<ProjectInfo> projectInfos) 370SolutionState AddProjects(ArrayBuilder<ProjectState> projectStates) 424public SolutionState RemoveProjects(ArrayBuilder<ProjectId> projectIds) 901public SolutionState WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options) 1159var newSolutionState = this.Branch( 1178static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(SolutionState @this, string filePath) 1200public SolutionState WithOptions(SolutionOptionSet options) 1203public SolutionState AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences) 1215public SolutionState RemoveAnalyzerReference(AnalyzerReference analyzerReference) 1227public SolutionState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
Workspace\Solution\SolutionState_Checksum.cs (1)
29/// <see cref="SolutionState"/>.
Workspace\Solution\StateChecksums.cs (2)
191var solutionState = compilationState.SolutionState; 279SolutionState solution,
Workspace\Solution\TextDocumentStates.cs (1)
359var result = new Dictionary<string, OneOrMany<DocumentId>>(SolutionState.FilePathComparer);