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
(
82 references to SolutionState
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
37
var
currentSolution = _workspace.CurrentSolution.SolutionState;
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
63
var
solutionState = project.Solution.SolutionState;
Features\Diagnostics\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)
154
var
solutionState = solution.SolutionState;
Host\SolutionAssetCache.cs (1)
178
var
solutionState = compilationState.SolutionState;
Microsoft.CodeAnalysis.Workspaces (75)
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)
42
public
SolutionState
SolutionState { get; }
61
SolutionState
solution,
90
SolutionState
solution,
117
SolutionState
newSolutionState,
144
/// <inheritdoc cref="
SolutionState
.ForkProject"/>
157
/// <inheritdoc cref="
SolutionState
.ForkProject"/>
180
var
newSolutionState = stateChange.NewSolutionState;
320
/// <inheritdoc cref="
SolutionState
.AddProjects(ArrayBuilder{ProjectInfo})"/>
326
var
newSolutionState = this.SolutionState.AddProjects(projectInfos);
359
/// <inheritdoc cref="
SolutionState
.RemoveProjects"/>
366
var
newSolutionState = this.SolutionState.RemoveProjects(projectIds);
405
/// <inheritdoc cref="
SolutionState
.WithProjectAssemblyName"/>
417
/// <inheritdoc cref="
SolutionState
.WithProjectOutputFilePath"/>
426
/// <inheritdoc cref="
SolutionState
.WithProjectOutputRefFilePath"/>
436
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOutputInfo"/>
446
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOutputInfo"/>
456
/// <inheritdoc cref="
SolutionState
.WithProjectChecksumAlgorithm"/>
467
/// <inheritdoc cref="
SolutionState
.WithProjectName"/>
477
/// <inheritdoc cref="
SolutionState
.WithProjectFilePath"/>
487
/// <inheritdoc cref="
SolutionState
.WithProjectCompilationOptions"/>
497
/// <inheritdoc cref="
SolutionState
.WithProjectParseOptions"/>
522
/// <inheritdoc cref="
SolutionState
.WithHasAllInformation"/>
532
/// <inheritdoc cref="
SolutionState
.WithRunAnalyzers"/>
542
/// <inheritdoc cref="
SolutionState
.WithHasSdkCodeStyleAnalyzers"/>
552
/// <inheritdoc cref="
SolutionState
.WithProjectDocumentsOrder"/>
659
/// <inheritdoc cref="
SolutionState
.AddProjectReferences"/>
669
/// <inheritdoc cref="
SolutionState
.RemoveProjectReference"/>
678
/// <inheritdoc cref="
SolutionState
.WithProjectReferences"/>
688
/// <inheritdoc cref="
SolutionState
.AddMetadataReferences"/>
698
/// <inheritdoc cref="
SolutionState
.RemoveMetadataReference"/>
707
/// <inheritdoc cref="
SolutionState
.WithProjectMetadataReferences"/>
741
/// <inheritdoc cref="
SolutionState
.WithProjectAnalyzerReferences"/>
772
/// <inheritdoc cref="
SolutionState
.WithDocumentAttributes{TValue}"/>
779
SolutionState
.WithDocumentAttributes(documentId, arg, updateAttributes), documentId);
808
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
907
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, SourceText, PreservationMode)"/>
915
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, SourceText, PreservationMode)"/>
922
/// <inheritdoc cref="
SolutionState
.WithFallbackAnalyzerOptions(ImmutableDictionary{string, StructuredAnalyzerConfigOptions})"/>
924
=> Branch(
SolutionState
.WithFallbackAnalyzerOptions(options));
926
/// <inheritdoc cref="
SolutionState
.WithDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
934
/// <inheritdoc cref="
SolutionState
.WithAdditionalDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
942
/// <inheritdoc cref="
SolutionState
.WithAnalyzerConfigDocumentText(DocumentId, TextAndVersion, PreservationMode)"/>
974
/// <inheritdoc cref="
SolutionState
.WithDocumentSourceCodeKind"/>
982
/// <inheritdoc cref="
SolutionState
.UpdateDocumentTextLoader"/>
997
/// <inheritdoc cref="
SolutionState
.UpdateAdditionalDocumentTextLoader"/>
1012
/// <inheritdoc cref="
SolutionState
.UpdateAnalyzerConfigDocumentTextLoader"/>
1088
private static readonly Func<ProjectId,
SolutionState
, RegularCompilationTracker> s_createCompilationTrackerFunction = CreateCompilationTracker;
1090
private static RegularCompilationTracker CreateCompilationTracker(ProjectId projectId,
SolutionState
solution)
1468
var dependencyGraph =
SolutionState
.CreateDependencyGraph(this.SolutionState.ProjectIds, newIdToProjectStateMap);
1683
SolutionState
.CheckContainsProject(projectId);
1684
var projectState =
SolutionState
.GetRequiredProjectState(projectId);
1717
var oldProjectState =
SolutionState
.GetRequiredProjectState(projectId);
1730
var stateChange =
SolutionState
.ForkProject(
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)
358
var result = new Dictionary<string, OneOrMany<DocumentId>>(
SolutionState
.FilePathComparer);