3 instantiations of SolutionState
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\Solution.cs (1)
64
new
SolutionState
(workspace.Kind, workspace.Services.SolutionServices, solutionAttributes, options, analyzerReferences, fallbackAnalyzerOptions),
Workspace\Solution\SolutionState.cs (2)
216
return new
SolutionState
(
256
return new
SolutionState
(
80 references to SolutionState
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (3)
38
var
currentSolution = _workspace.CurrentSolution.SolutionState;
103
private void UpdateProviders(
SolutionState
solution)
110
private static ISettingsProviderFactory<T> GetOptionsProviderFactory<T>(
SolutionState
solution)
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditSession.cs (1)
1065
var changedDocumentsStaleness = new Dictionary<string, bool>(
SolutionState
.FilePathComparer);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.SolutionCreator.cs (1)
151
var
solutionState = solution.SolutionState;
Host\SolutionAssetCache.cs (1)
178
var
solutionState = compilationState.SolutionState;
Microsoft.CodeAnalysis.Workspaces (74)
Workspace\Host\PersistentStorage\ProjectKey.cs (1)
37
public static ProjectKey ToProjectKey(
SolutionState
solutionState, ProjectState projectState)
Workspace\Host\PersistentStorage\SolutionKey.cs (1)
24
public static SolutionKey ToSolutionKey(
SolutionState
solutionState)
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
29
private 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)
70
internal
SolutionState
SolutionState => CompilationState.SolutionState;
Workspace\Solution\SolutionCompilationState.cs (47)
41
public
SolutionState
SolutionState { get; }
62
SolutionState
solution,
93
SolutionState
solution,
122
SolutionState
newSolutionState,
150
/// <inheritdoc cref="
SolutionState
.ForkProject"/>
163
/// <inheritdoc cref="
SolutionState
.ForkProject"/>
186
var
newSolutionState = stateChange.NewSolutionState;
326
/// <inheritdoc cref="
SolutionState
.AddProjects(ArrayBuilder{ProjectInfo})"/>
332
var
newSolutionState = this.SolutionState.AddProjects(projectInfos);
365
/// <inheritdoc cref="
SolutionState
.RemoveProjects"/>
372
var
newSolutionState = this.SolutionState.RemoveProjects(projectIds);
411
/// <inheritdoc cref="
SolutionState
.WithProjectAssemblyName"/>
423
/// <inheritdoc cref="
SolutionState
.WithProjectOutputFilePath"/>
432
/// <inheritdoc cref="
SolutionState
.WithProjectOutputRefFilePath"/>
442
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOutputInfo"/>
452
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOutputInfo"/>
462
/// <inheritdoc cref="
SolutionState
.WithProjectChecksumAlgorithm"/>
473
/// <inheritdoc cref="
SolutionState
.WithProjectName"/>
483
/// <inheritdoc cref="
SolutionState
.WithProjectFilePath"/>
493
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOptions"/>
503
/// <inheritdoc cref="
SolutionState
.WithProjectParseOptions"/>
528
/// <inheritdoc cref="
SolutionState
.WithHasAllInformation"/>
538
/// <inheritdoc cref="
SolutionState
.WithRunAnalyzers"/>
548
/// <inheritdoc cref="
SolutionState
.WithHasSdkCodeStyleAnalyzers"/>
558
/// <inheritdoc cref="
SolutionState
.WithProjectDocumentsOrder"/>
665
/// <inheritdoc cref="
SolutionState
.AddProjectReferences"/>
675
/// <inheritdoc cref="
SolutionState
.RemoveProjectReference"/>
684
/// <inheritdoc cref="
SolutionState
.WithProjectReferences"/>
694
/// <inheritdoc cref="
SolutionState
.AddMetadataReferences"/>
704
/// <inheritdoc cref="
SolutionState
.RemoveMetadataReference"/>
713
/// <inheritdoc cref="
SolutionState
.WithProjectMetadataReferences"/>
747
/// <inheritdoc cref="
SolutionState
.WithProjectAnalyzerReferences"/>
778
/// <inheritdoc cref="
SolutionState
.WithDocumentAttributes{TValue}"/>
950
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, SourceText, PreservationMode)"/>
958
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)"/>
965
/// <inheritdoc cref="
SolutionState
.WithFallbackAnalyzerOptions(ImmutableDictionary{string, StructuredAnalyzerConfigOptions})"/>
969
/// <inheritdoc cref="
SolutionState
.WithDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
977
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
985
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
1047
/// <inheritdoc cref="
SolutionState
.WithDocumentSourceCodeKind"/>
1055
/// <inheritdoc cref="
SolutionState
.UpdateDocumentTextLoader"/>
1070
/// <inheritdoc cref="
SolutionState
.UpdateAdditionalDocumentTextLoader"/>
1085
/// <inheritdoc cref="
SolutionState
.UpdateAnalyzerConfigDocumentTextLoader"/>
1161
private static readonly Func<ProjectId,
SolutionState
, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker;
1163
private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId,
SolutionState
solution)
1557
var dependencyGraph =
SolutionState
.CreateDependencyGraph(this.SolutionState.ProjectIds, sortedNewProjectStates);
1559
var
newState = this.SolutionState.Branch(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
108
var
solution = compilationState.SolutionState;
Workspace\Solution\SolutionState.cs (14)
26
SolutionState
NewSolutionState,
42
/// workspace whenever the content of its <see cref="
SolutionState
"/> snapshot changes. Importantly,
183
internal
SolutionState
Branch(
238
public
SolutionState
WithNewWorkspaceFrom(Solution oldSolution)
370
public
SolutionState
AddProjects(ArrayBuilder<ProjectInfo> projectInfos)
417
SolutionState
AddProjects(ArrayBuilder<ProjectState> projectStates)
475
public
SolutionState
RemoveProjects(ArrayBuilder<ProjectId> projectIds)
942
public
SolutionState
WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options)
1201
var
newSolutionState = this.Branch(
1216
static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(string filePath,
SolutionState
@this)
1238
public
SolutionState
WithOptions(SolutionOptionSet options)
1241
public
SolutionState
AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences)
1253
public
SolutionState
RemoveAnalyzerReference(AnalyzerReference analyzerReference)
1265
public
SolutionState
WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
Workspace\Solution\SolutionState_Checksum.cs (1)
24
/// <see cref="
SolutionState
"/>.
Workspace\Solution\StateChecksums.cs (2)
169
var
solutionState = compilationState.SolutionState;
255
SolutionState
solution,
Workspace\Solution\TextDocumentStates.cs (2)
40
private static readonly ObjectPool<Dictionary<string, OneOrMany<DocumentId>>> s_filePathPool = new(() => new(
SolutionState
.FilePathComparer));
374
return result.ToFrozenDictionary(
SolutionState
.FilePathComparer);
Workspace\Workspace.cs (2)
482
/// (if it's <see cref="
SolutionState
"/> actually changed). This will only be run once.</param>
487
/// (if it's <see cref="
SolutionState
"/> actually changed). This will only be run once.</param>