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)
218
return new
SolutionState
(
258
return new
SolutionState
(
80 references to SolutionState
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (3)
38
var
currentSolution = _workspace.CurrentSolution.SolutionState;
102
private void UpdateProviders(
SolutionState
solution)
109
private static ISettingsProviderFactory<T> GetOptionsProviderFactory<T>(
SolutionState
solution)
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditSession.cs (1)
1077
var changedDocumentsStaleness = new Dictionary<string, DocumentStalenessReason?>(
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"/>
175
var
newSolutionState = stateChange.NewSolutionState;
315
/// <inheritdoc cref="
SolutionState
.AddProjects(ArrayBuilder{ProjectInfo})"/>
321
var
newSolutionState = this.SolutionState.AddProjects(projectInfos);
354
/// <inheritdoc cref="
SolutionState
.RemoveProjects"/>
361
var
newSolutionState = this.SolutionState.RemoveProjects(projectIds);
400
/// <inheritdoc cref="
SolutionState
.WithProjectAssemblyName"/>
412
/// <inheritdoc cref="
SolutionState
.WithProjectOutputFilePath"/>
421
/// <inheritdoc cref="
SolutionState
.WithProjectOutputRefFilePath"/>
431
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOutputInfo"/>
441
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOutputInfo"/>
451
/// <inheritdoc cref="
SolutionState
.WithProjectChecksumAlgorithm"/>
462
/// <inheritdoc cref="
SolutionState
.WithProjectName"/>
472
/// <inheritdoc cref="
SolutionState
.WithProjectFilePath"/>
482
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOptions"/>
492
/// <inheritdoc cref="
SolutionState
.WithProjectParseOptions"/>
517
/// <inheritdoc cref="
SolutionState
.WithHasAllInformation"/>
527
/// <inheritdoc cref="
SolutionState
.WithRunAnalyzers"/>
537
/// <inheritdoc cref="
SolutionState
.WithHasSdkCodeStyleAnalyzers"/>
547
/// <inheritdoc cref="
SolutionState
.WithProjectDocumentsOrder"/>
656
/// <inheritdoc cref="
SolutionState
.AddProjectReferences"/>
666
/// <inheritdoc cref="
SolutionState
.RemoveProjectReference"/>
675
/// <inheritdoc cref="
SolutionState
.WithProjectReferences"/>
685
/// <inheritdoc cref="
SolutionState
.AddMetadataReferences"/>
695
/// <inheritdoc cref="
SolutionState
.RemoveMetadataReference"/>
704
/// <inheritdoc cref="
SolutionState
.WithProjectMetadataReferences"/>
738
/// <inheritdoc cref="
SolutionState
.WithProjectAnalyzerReferences"/>
769
/// <inheritdoc cref="
SolutionState
.WithDocumentAttributes{TValue}"/>
941
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, SourceText, PreservationMode)"/>
949
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)"/>
956
/// <inheritdoc cref="
SolutionState
.WithFallbackAnalyzerOptions(ImmutableDictionary{string, StructuredAnalyzerConfigOptions})"/>
960
/// <inheritdoc cref="
SolutionState
.WithDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
968
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
976
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
1038
/// <inheritdoc cref="
SolutionState
.WithDocumentSourceCodeKind"/>
1046
/// <inheritdoc cref="
SolutionState
.UpdateDocumentTextLoader"/>
1061
/// <inheritdoc cref="
SolutionState
.UpdateAdditionalDocumentTextLoader"/>
1076
/// <inheritdoc cref="
SolutionState
.UpdateAnalyzerConfigDocumentTextLoader"/>
1152
private static readonly Func<ProjectId,
SolutionState
, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker;
1154
private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId,
SolutionState
solution)
1548
var dependencyGraph =
SolutionState
.CreateDependencyGraph(this.SolutionState.ProjectIds, sortedNewProjectStates);
1550
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,
185
internal
SolutionState
Branch(
240
public
SolutionState
WithNewWorkspaceFrom(Solution oldSolution)
372
public
SolutionState
AddProjects(ArrayBuilder<ProjectInfo> projectInfos)
419
SolutionState
AddProjects(ArrayBuilder<ProjectState> projectStates)
477
public
SolutionState
RemoveProjects(ArrayBuilder<ProjectId> projectIds)
944
public
SolutionState
WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options)
1203
var
newSolutionState = this.Branch(
1218
static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(string filePath,
SolutionState
@this)
1240
public
SolutionState
WithOptions(SolutionOptionSet options)
1243
public
SolutionState
AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences)
1255
public
SolutionState
RemoveAnalyzerReference(AnalyzerReference analyzerReference)
1267
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)
450
/// (if it's <see cref="
SolutionState
"/> actually changed). This will only be run once.</param>
455
/// (if it's <see cref="
SolutionState
"/> actually changed). This will only be run once.</param>