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)
198
return new
SolutionState
(
232
return new
SolutionState
(
79 references to SolutionState
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
36
var
currentSolution = _workspace.CurrentSolution.SolutionState;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.SolutionCreator.cs (1)
155
var
solutionState = solution.SolutionState;
Host\SolutionAssetCache.cs (1)
178
var
solutionState = compilationState.SolutionState;
Microsoft.CodeAnalysis.Workspaces (76)
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\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);
807
var 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"/>
1087
private static readonly Func<ProjectId,
SolutionState
, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker;
1089
private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId,
SolutionState
solution)
1488
var dependencyGraph =
SolutionState
.CreateDependencyGraph(this.SolutionState.ProjectIds, newIdToProjectStateMap);
1651
SolutionState
.CheckContainsProject(projectId);
1652
var projectState =
SolutionState
.GetRequiredProjectState(projectId);
1685
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
1698
var stateChange =
SolutionState
.ForkProject(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1106
private async Task<Checksum> ComputeDependentChecksumAsync(
SolutionState
solution, CancellationToken cancellationToken)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
82
var
solution = compilationState.SolutionState;
Workspace\Solution\SolutionState.cs (13)
24
SolutionState
NewSolutionState,
165
internal
SolutionState
Branch(
218
public
SolutionState
WithNewWorkspace(
323
public
SolutionState
AddProjects(ArrayBuilder<ProjectInfo> projectInfos)
370
SolutionState
AddProjects(ArrayBuilder<ProjectState> projectStates)
424
public
SolutionState
RemoveProjects(ArrayBuilder<ProjectId> projectIds)
901
public
SolutionState
WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options)
1159
var
newSolutionState = this.Branch(
1178
static ImmutableArray<DocumentId> ComputeDocumentIdsWithFilePath(
SolutionState
@this, string filePath)
1200
public
SolutionState
WithOptions(SolutionOptionSet options)
1203
public
SolutionState
AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences)
1215
public
SolutionState
RemoveAnalyzerReference(AnalyzerReference analyzerReference)
1227
public
SolutionState
WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
Workspace\Solution\SolutionState_Checksum.cs (1)
29
/// <see cref="
SolutionState
"/>.
Workspace\Solution\StateChecksums.cs (2)
191
var
solutionState = compilationState.SolutionState;
279
SolutionState
solution,
Workspace\Solution\TextDocumentStates.cs (1)
356
var result = new Dictionary<string, OneOrMany<DocumentId>>(
SolutionState
.FilePathComparer);