3 instantiations of SolutionState
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\Solution.cs (1)
64new SolutionState(workspace.Kind, workspace.Services.SolutionServices, solutionAttributes, options, analyzerReferences, fallbackAnalyzerOptions),
Workspace\Solution\SolutionState.cs (2)
218return new SolutionState( 258return new SolutionState(
75 references to SolutionState
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditSession.cs (1)
1109var changedDocumentsStaleness = new Dictionary<string, DocumentStalenessReason?>(SolutionState.FilePathComparer);
Microsoft.CodeAnalysis.Workspaces (74)
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\IsolatedAnalyzerReferenceSet.Core.cs (1)
29private static readonly ObjectPool<Dictionary<string, Guid>> s_pathToMvidMapPool = new(() => new(SolutionState.FilePathComparer));
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)
69internal SolutionState SolutionState => CompilationState.SolutionState;
Workspace\Solution\SolutionCompilationState.cs (47)
41public SolutionState SolutionState { get; } 62SolutionState solution, 93SolutionState solution, 121SolutionState newSolutionState, 152/// <inheritdoc cref="SolutionState.ForkProject"/> 165/// <inheritdoc cref="SolutionState.ForkProject"/> 177var newSolutionState = stateChange.NewSolutionState; 322/// <inheritdoc cref="SolutionState.AddProjects(ArrayBuilder{ProjectInfo})"/> 328var newSolutionState = this.SolutionState.AddProjects(projectInfos); 370/// <inheritdoc cref="SolutionState.RemoveProjects"/> 377var newSolutionState = this.SolutionState.RemoveProjects(projectIds); 421/// <inheritdoc cref="SolutionState.WithProjectAssemblyName"/> 433/// <inheritdoc cref="SolutionState.WithProjectOutputFilePath"/> 442/// <inheritdoc cref="SolutionState.WithProjectOutputRefFilePath"/> 452/// <inheritdoc cref="SolutionState.WithProjectCompilationOutputInfo"/> 462/// <inheritdoc cref="SolutionState.WithProjectCompilationOutputInfo"/> 472/// <inheritdoc cref="SolutionState.WithProjectChecksumAlgorithm"/> 483/// <inheritdoc cref="SolutionState.WithProjectName"/> 493/// <inheritdoc cref="SolutionState.WithProjectFilePath"/> 503/// <inheritdoc cref="SolutionState.WithProjectCompilationOptions"/> 513/// <inheritdoc cref="SolutionState.WithProjectParseOptions"/> 538/// <inheritdoc cref="SolutionState.WithHasAllInformation"/> 548/// <inheritdoc cref="SolutionState.WithRunAnalyzers"/> 558/// <inheritdoc cref="SolutionState.WithHasSdkCodeStyleAnalyzers"/> 568/// <inheritdoc cref="SolutionState.WithProjectDocumentsOrder"/> 677/// <inheritdoc cref="SolutionState.AddProjectReferences"/> 687/// <inheritdoc cref="SolutionState.RemoveProjectReference"/> 696/// <inheritdoc cref="SolutionState.WithProjectReferences"/> 706/// <inheritdoc cref="SolutionState.AddMetadataReferences"/> 716/// <inheritdoc cref="SolutionState.RemoveMetadataReference"/> 725/// <inheritdoc cref="SolutionState.WithProjectMetadataReferences"/> 759/// <inheritdoc cref="SolutionState.WithProjectAnalyzerReferences"/> 790/// <inheritdoc cref="SolutionState.WithDocumentAttributes{TValue}"/> 962/// <inheritdoc cref="SolutionState.WithAdditionalDocumentText(DocumentId, SourceText, PreservationMode)"/> 970/// <inheritdoc cref="SolutionState.WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)"/> 977/// <inheritdoc cref="SolutionState.WithFallbackAnalyzerOptions(ImmutableDictionary{string, StructuredAnalyzerConfigOptions})"/> 981/// <inheritdoc cref="SolutionState.WithDocumentText(DocumentId, TextAndVersion, PreservationMode)"/> 989/// <inheritdoc cref="SolutionState.WithAdditionalDocumentText(DocumentId, TextAndVersion, PreservationMode)"/> 997/// <inheritdoc cref="SolutionState.WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)"/> 1059/// <inheritdoc cref="SolutionState.WithDocumentSourceCodeKind"/> 1067/// <inheritdoc cref="SolutionState.UpdateDocumentTextLoader"/> 1082/// <inheritdoc cref="SolutionState.UpdateAdditionalDocumentTextLoader"/> 1097/// <inheritdoc cref="SolutionState.UpdateAnalyzerConfigDocumentTextLoader"/> 1173private static readonly Func<ProjectId, SolutionState, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker; 1175private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId, SolutionState solution) 1571var dependencyGraph = SolutionState.CreateDependencyGraph(this.SolutionState.ProjectIds, sortedNewProjectStates); 1573var newState = this.SolutionState.Branch(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
108var solution = compilationState.SolutionState;
Workspace\Solution\SolutionState.cs (14)
26SolutionState NewSolutionState, 42/// workspace whenever the content of its <see cref="SolutionState"/> snapshot changes. Importantly, 185internal SolutionState Branch( 240public SolutionState WithNewWorkspaceFrom(Solution oldSolution) 372public SolutionState AddProjects(ArrayBuilder<ProjectInfo> projectInfos) 416SolutionState AddProjects(ArrayBuilder<ProjectState> projectStates) 474public SolutionState RemoveProjects(ArrayBuilder<ProjectId> projectIds) 941public SolutionState WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options) 1200var newSolutionState = this.Branch( 1215static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(string filePath, SolutionState @this) 1237public SolutionState WithOptions(SolutionOptionSet options) 1240public SolutionState AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences) 1252public SolutionState RemoveAnalyzerReference(AnalyzerReference analyzerReference) 1264public SolutionState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
Workspace\Solution\SolutionState_Checksum.cs (1)
24/// <see cref="SolutionState"/>.
Workspace\Solution\StateChecksums.cs (2)
169var solutionState = compilationState.SolutionState; 255SolutionState solution,
Workspace\Solution\TextDocumentStates.cs (2)
40private static readonly ObjectPool<Dictionary<string, OneOrMany<DocumentId>>> s_filePathPool = new(() => new(SolutionState.FilePathComparer)); 372return result.ToFrozenDictionary(SolutionState.FilePathComparer);
Workspace\Workspace.cs (2)
438/// (if it's <see cref="SolutionState"/> actually changed). This will only be run once.</param> 443/// (if it's <see cref="SolutionState"/> actually changed). This will only be run once.</param>