41 references to SolutionState
Microsoft.CodeAnalysis.Workspaces (41)
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)
304
var projectState = solution.
SolutionState
.GetRequiredProjectState(projectId);
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;
121
public IReadOnlyList<ProjectId> ProjectIds => this.
SolutionState
.ProjectIds;
127
internal ImmutableArray<ProjectState> SortedProjectStates => this.
SolutionState
.SortedProjectStates;
138
public VersionStamp GetLatestProjectVersion() => this.
SolutionState
.GetLatestProjectVersion();
144
=> this.
SolutionState
.ContainsProject(projectId);
164
var state = solution.
SolutionState
.GetProjectState(projectId);
219
public bool ContainsDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsDocument(documentId);
224
public bool ContainsAdditionalDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsAdditionalDocument(documentId);
229
public bool ContainsAnalyzerConfigDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.
SolutionState
.ContainsAnalyzerConfigDocument(documentId);
629
if (this.
SolutionState
.ContainsProjectReference(projectId, projectReference))
725
if (this.
SolutionState
.ContainsMetadataReference(projectId, metadataReference))
808
if (this.
SolutionState
.ContainsAnalyzerReference(projectId, analyzerReference))
892
if (this.
SolutionState
.AnalyzerReferences.Contains(analyzerReference))
912
if (!this.
SolutionState
.AnalyzerReferences.Contains(analyzerReference))
1124
=> this.
SolutionState
.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
1570
=> this.
SolutionState
.GetRelatedDocumentIds(documentId, includeDifferentLanguages);
1580
=> this.
SolutionState
.GetFirstRelatedDocumentId(documentId, relatedProjectIdHint);
1687
public ImmutableArray<DocumentId> GetDocumentIdsWithFilePath(string? filePath) => this.
SolutionState
.GetDocumentIdsWithFilePath(filePath);
1692
public ProjectDependencyGraph GetProjectDependencyGraph() => this.
SolutionState
.GetProjectDependencyGraph();
1698
public OptionSet Options => this.
SolutionState
.Options;
1703
public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.
SolutionState
.AnalyzerReferences;
1711
internal ImmutableDictionary<string, StructuredAnalyzerConfigOptions> FallbackAnalyzerOptions =>
SolutionState
.FallbackAnalyzerOptions;
1853
if (this.
SolutionState
.ContainsTransitiveReference(projectReference.ProjectId, projectId))
1871
var projectState = this.
SolutionState
.GetRequiredProjectState(projectId);
1874
var hasSubmissionReference = !ignoreExistingReferences && projectState.ProjectReferences.Any(p => this.
SolutionState
.GetRequiredProjectState(p.ProjectId).IsSubmission);
1879
var referencedProjectState = this.
SolutionState
.GetProjectState(projectReference.ProjectId);
Workspace\Workspace.cs (5)
422
foreach (var (language, _) in oldSolution.
SolutionState
.ProjectCountByLanguage)
424
if (!newSolution.
SolutionState
.ProjectCountByLanguage.ContainsKey(language))
431
foreach (var (language, _) in newSolution.
SolutionState
.ProjectCountByLanguage)
433
if (oldSolution.
SolutionState
.ProjectCountByLanguage.ContainsKey(language))
1593
var changedOptions = newSolution.
SolutionState
.Options.GetChangedOptions();