3 instantiations of SolutionState
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\Solution.cs (1)
65
new
SolutionState
(workspace.Kind, workspace.Services.SolutionServices, solutionAttributes, options, analyzerReferences, fallbackAnalyzerOptions),
Workspace\Solution\SolutionState.cs (2)
208
return new
SolutionState
(
242
return new
SolutionState
(
84 references to SolutionState
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
37
var
currentSolution = _workspace.CurrentSolution.SolutionState;
Microsoft.CodeAnalysis.Features (4)
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
62
var
solutionState = project.Solution.SolutionState;
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (3)
28
/// This table is keyed off of <see cref="ProjectState"/> but stores data from <see cref="
SolutionState
"/> on
29
/// it. Specifically <see cref="
SolutionState
.Analyzers"/>. Normally keying off a ProjectState would not be ok
77
var
solutionState = project.Solution.SolutionState;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.SolutionCreator.cs (1)
150
var
solutionState = solution.SolutionState;
Host\SolutionAssetCache.cs (1)
178
var
solutionState = compilationState.SolutionState;
Microsoft.CodeAnalysis.Workspaces (77)
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 (53)
41
public
SolutionState
SolutionState { get; }
60
SolutionState
solution,
89
SolutionState
solution,
116
SolutionState
newSolutionState,
143
/// <inheritdoc cref="
SolutionState
.ForkProject"/>
156
/// <inheritdoc cref="
SolutionState
.ForkProject"/>
179
var
newSolutionState = stateChange.NewSolutionState;
319
/// <inheritdoc cref="
SolutionState
.AddProjects(ArrayBuilder{ProjectInfo})"/>
325
var
newSolutionState = this.SolutionState.AddProjects(projectInfos);
358
/// <inheritdoc cref="
SolutionState
.RemoveProjects"/>
365
var
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}"/>
778
SolutionState
.WithDocumentAttributes(documentId, arg, updateAttributes), documentId);
842
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
943
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, SourceText, PreservationMode)"/>
951
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)"/>
958
/// <inheritdoc cref="
SolutionState
.WithFallbackAnalyzerOptions(ImmutableDictionary{string, StructuredAnalyzerConfigOptions})"/>
960
=> Branch(
SolutionState
.WithFallbackAnalyzerOptions(options));
962
/// <inheritdoc cref="
SolutionState
.WithDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
970
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
978
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
1040
/// <inheritdoc cref="
SolutionState
.WithDocumentSourceCodeKind"/>
1048
/// <inheritdoc cref="
SolutionState
.UpdateDocumentTextLoader"/>
1063
/// <inheritdoc cref="
SolutionState
.UpdateAdditionalDocumentTextLoader"/>
1078
/// <inheritdoc cref="
SolutionState
.UpdateAnalyzerConfigDocumentTextLoader"/>
1154
private static readonly Func<ProjectId,
SolutionState
, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker;
1156
private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId,
SolutionState
solution)
1551
var dependencyGraph =
SolutionState
.CreateDependencyGraph(this.SolutionState.ProjectIds, sortedNewProjectStates);
1774
SolutionState
.CheckContainsProject(projectId);
1775
var projectState =
SolutionState
.GetRequiredProjectState(projectId);
1808
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
1821
var stateChange =
SolutionState
.ForkProject(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
82
var
solution = compilationState.SolutionState;
Workspace\Solution\SolutionState.cs (13)
25
SolutionState
NewSolutionState,
175
internal
SolutionState
Branch(
228
public
SolutionState
WithNewWorkspace(
356
public
SolutionState
AddProjects(ArrayBuilder<ProjectInfo> projectInfos)
403
SolutionState
AddProjects(ArrayBuilder<ProjectState> projectStates)
461
public
SolutionState
RemoveProjects(ArrayBuilder<ProjectId> projectIds)
932
public
SolutionState
WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options)
1191
var
newSolutionState = this.Branch(
1206
static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(string filePath,
SolutionState
@this)
1228
public
SolutionState
WithOptions(SolutionOptionSet options)
1231
public
SolutionState
AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences)
1243
public
SolutionState
RemoveAnalyzerReference(AnalyzerReference analyzerReference)
1255
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;
257
SolutionState
solution,
Workspace\Solution\TextDocumentStates.cs (2)
39
private static readonly ObjectPool<Dictionary<string, OneOrMany<DocumentId>>> s_filePathPool = new(() => new(
SolutionState
.FilePathComparer));
373
return result.ToFrozenDictionary(
SolutionState
.FilePathComparer);