54 references to SolutionState
Microsoft.CodeAnalysis.CSharp.Features (1)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
128
var hostAnalyzers = document.Project.Solution.
SolutionState
.Analyzers;
Microsoft.CodeAnalysis.Features (10)
Diagnostics\Service\DiagnosticAnalyzerService.HostAnalyzerInfo.cs (3)
108
var key = new HostAnalyzerInfoKey(project.Language, project.State.HasSdkCodeStyleAnalyzers, solution.
SolutionState
.Analyzers.HostAnalyzerReferences);
112
var hostAnalyzerInfo = ImmutableInterlocked.GetOrAdd(ref _hostAnalyzerStateMap, key, CreateLanguageSpecificAnalyzerMap, (solution.
SolutionState
.Analyzers, referenceIdsToRedirect));
199
return GetFeaturesAnalyzerReferenceIds(project.Solution.
SolutionState
.Analyzers);
Diagnostics\Service\DiagnosticAnalyzerService.ProjectStates.cs (1)
58
var solutionAnalyzers = project.Solution.
SolutionState
.Analyzers;
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (1)
63
var compilerAnalyzer = project.Solution.
SolutionState
.Analyzers.GetCompilerDiagnosticAnalyzer(project.Language);
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
54
var skippedAnalyzersInfo = project.Solution.
SolutionState
.Analyzers.GetSkippedAnalyzersInfo(project.State, _analyzerInfoCache);
Diagnostics\Service\DiagnosticAnalyzerService_RemoteOrLocalDispatcher.cs (3)
85
var analyzersPerReferenceMap = solution.
SolutionState
.Analyzers.CreateDiagnosticAnalyzersPerReference(project);
127
return solution.
SolutionState
.Analyzers.GetAllDiagnosticIds(
150
return solution.
SolutionState
.Analyzers.GetDiagnosticDescriptorsPerReference(
EditAndContinue\DebuggingSession.cs (1)
146
_telemetry = new DebuggingSessionTelemetry(solution.
SolutionState
.SolutionAttributes.TelemetryId);
Microsoft.CodeAnalysis.Workspaces (43)
Workspace\Host\PersistentStorage\ProjectKey.cs (1)
35
=> ToProjectKey(project.Solution.
SolutionState
, project.State);
Workspace\Host\PersistentStorage\SolutionKey.cs (1)
22
=> ToSolutionKey(solution.
SolutionState
);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
286
var projectState = solution.
SolutionState
.GetRequiredProjectState(projectId);
Workspace\Solution\Solution.cs (37)
73
internal int SolutionStateContentVersion => this.
SolutionState
.ContentVersion;
81
public SolutionServices Services => this.
SolutionState
.Services;
83
internal string? WorkspaceKind => this.
SolutionState
.WorkspaceKind;
85
internal ProjectState? GetProjectState(ProjectId projectId) => this.
SolutionState
.GetProjectState(projectId);
96
return this.
SolutionState
.Services.WorkspaceServices.Workspace;
104
public SolutionId Id => this.
SolutionState
.Id;
109
public string? FilePath => this.
SolutionState
.FilePath;
114
public VersionStamp Version => this.
SolutionState
.Version;
120
public IReadOnlyList<ProjectId> ProjectIds => this.
SolutionState
.ProjectIds;
126
internal ImmutableArray<ProjectState> SortedProjectStates => this.
SolutionState
.SortedProjectStates;
137
public VersionStamp GetLatestProjectVersion() => this.
SolutionState
.GetLatestProjectVersion();
143
=> this.
SolutionState
.ContainsProject(projectId);
166
var state = solution.
SolutionState
.GetProjectState(projectId);
221
public bool ContainsDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsDocument(documentId);
226
public bool ContainsAdditionalDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsAdditionalDocument(documentId);
231
public bool ContainsAnalyzerConfigDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsAnalyzerConfigDocument(documentId);
538
foreach (var (language, _) in oldSolution.
SolutionState
.ProjectCountByLanguage)
540
if (!this.
SolutionState
.ProjectCountByLanguage.ContainsKey(language))
545
foreach (var (language, _) in this.
SolutionState
.ProjectCountByLanguage)
547
if (oldSolution.
SolutionState
.ProjectCountByLanguage.ContainsKey(language))
669
if (this.
SolutionState
.ContainsProjectReference(projectId, projectReference))
765
if (this.
SolutionState
.ContainsMetadataReference(projectId, metadataReference))
848
if (this.
SolutionState
.ContainsAnalyzerReference(projectId, analyzerReference))
932
if (this.
SolutionState
.AnalyzerReferences.Contains(analyzerReference))
952
if (!this.
SolutionState
.AnalyzerReferences.Contains(analyzerReference))
1166
=> this.
SolutionState
.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
1616
=> this.
SolutionState
.GetRelatedDocumentIds(documentId, includeDifferentLanguages);
1626
=> this.
SolutionState
.GetFirstRelatedDocumentId(documentId, relatedProjectIdHint);
1722
public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) => this.
SolutionState
.GetDocumentIdsWithFilePath(filePath);
1727
public ProjectDependencyGraph GetProjectDependencyGraph() => this.
SolutionState
.GetProjectDependencyGraph();
1733
public OptionSet Options => this.
SolutionState
.Options;
1738
public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.
SolutionState
.AnalyzerReferences;
1746
internal ImmutableDictionary<string, StructuredAnalyzerConfigOptions> FallbackAnalyzerOptions =>
SolutionState
.FallbackAnalyzerOptions;
1888
if (this.
SolutionState
.ContainsTransitiveReference(projectReference.ProjectId, projectId))
1906
var projectState = this.
SolutionState
.GetRequiredProjectState(projectId);
1909
var hasSubmissionReference = !ignoreExistingReferences && projectState.ProjectReferences.Any(p => this.
SolutionState
.GetRequiredProjectState(p.ProjectId).IsSubmission);
1914
var referencedProjectState = this.
SolutionState
.GetProjectState(projectReference.ProjectId);
Workspace\Solution\SolutionState.cs (1)
245
var solutionStateContentVersion = oldSolution.
SolutionState
== this
Workspace\Workspace.cs (2)
390
changedDocumentState ??= solution.
SolutionState
.GetRequiredDocumentState(changedDocumentId);
1589
var changedOptions = newSolution.
SolutionState
.Options.GetChangedOptions();