42 references to SolutionState
Microsoft.CodeAnalysis.Workspaces (42)
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)
300
var projectState = solution.
SolutionState
.GetRequiredProjectState(projectId);
Workspace\Solution\Project.cs (1)
820
=> Solution.
SolutionState
.Analyzers.GetSkippedAnalyzersInfo(this, infoCache);
Workspace\Solution\Solution.cs (33)
74
internal int WorkspaceVersion => this.
SolutionState
.WorkspaceVersion;
82
public SolutionServices Services => this.
SolutionState
.Services;
84
internal string? WorkspaceKind => this.
SolutionState
.WorkspaceKind;
86
internal ProjectState? GetProjectState(ProjectId projectId) => this.
SolutionState
.GetProjectState(projectId);
97
return this.
SolutionState
.Services.WorkspaceServices.Workspace;
105
public SolutionId Id => this.
SolutionState
.Id;
110
public string? FilePath => this.
SolutionState
.FilePath;
115
public VersionStamp Version => this.
SolutionState
.Version;
120
public IReadOnlyList<ProjectId> ProjectIds => this.
SolutionState
.ProjectIds;
130
public VersionStamp GetLatestProjectVersion() => this.
SolutionState
.GetLatestProjectVersion();
135
public bool ContainsProject([NotNullWhen(returnValue: true)] ProjectId? projectId) => this.
SolutionState
.ContainsProject(projectId);
155
var state = solution.
SolutionState
.GetProjectState(projectId);
210
public bool ContainsDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsDocument(documentId);
215
public bool ContainsAdditionalDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsAdditionalDocument(documentId);
220
public bool ContainsAnalyzerConfigDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsAnalyzerConfigDocument(documentId);
609
if (this.
SolutionState
.ContainsProjectReference(projectId, projectReference))
705
if (this.
SolutionState
.ContainsMetadataReference(projectId, metadataReference))
790
if (this.
SolutionState
.ContainsAnalyzerReference(projectId, analyzerReference))
796
return WithCompilationState(CompilationState.AddAnalyzerReferences(this.
SolutionState
.AddAnalyzerReferences(projectId, collection), collection));
863
if (this.
SolutionState
.AnalyzerReferences.Contains(analyzerReference))
883
if (!this.
SolutionState
.AnalyzerReferences.Contains(analyzerReference))
1095
=> this.
SolutionState
.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
1542
=> this.
SolutionState
.GetRelatedDocumentIds(documentId);
1552
=> this.
SolutionState
.GetFirstRelatedDocumentId(documentId, relatedProjectIdHint);
1652
public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) => this.
SolutionState
.GetDocumentIdsWithFilePath(filePath);
1657
public ProjectDependencyGraph GetProjectDependencyGraph() => this.
SolutionState
.GetProjectDependencyGraph();
1663
public OptionSet Options => this.
SolutionState
.Options;
1668
public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.
SolutionState
.AnalyzerReferences;
1676
internal ImmutableDictionary<string, StructuredAnalyzerConfigOptions> FallbackAnalyzerOptions =>
SolutionState
.FallbackAnalyzerOptions;
1801
if (this.
SolutionState
.ContainsTransitiveReference(projectReference.ProjectId, projectId))
1819
var projectState = this.
SolutionState
.GetRequiredProjectState(projectId);
1822
var hasSubmissionReference = !ignoreExistingReferences && projectState.ProjectReferences.Any(p => this.
SolutionState
.GetRequiredProjectState(p.ProjectId).IsSubmission);
1827
var referencedProjectState = this.
SolutionState
.GetProjectState(projectReference.ProjectId);
Workspace\Workspace.cs (5)
414
foreach (var (language, _) in oldSolution.
SolutionState
.ProjectCountByLanguage)
416
if (!newSolution.
SolutionState
.ProjectCountByLanguage.ContainsKey(language))
423
foreach (var (language, _) in newSolution.
SolutionState
.ProjectCountByLanguage)
425
if (oldSolution.
SolutionState
.ProjectCountByLanguage.ContainsKey(language))
1551
var changedOptions = newSolution.
SolutionState
.Options.GetChangedOptions();