18 references to GetProjectState
Microsoft.CodeAnalysis.Workspaces (18)
Workspace\Solution\Solution.cs (4)
86
internal ProjectState? GetProjectState(ProjectId projectId) => this.SolutionState.
GetProjectState
(projectId);
164
var state = solution.SolutionState.
GetProjectState
(projectId);
1124
=> this.SolutionState.
GetProjectState
(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
1879
var referencedProjectState = this.SolutionState.
GetProjectState
(projectReference.ProjectId);
Workspace\Solution\SolutionCompilationState.cs (1)
1161
var projectState = solution.
GetProjectState
(projectId);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
24
var projectState = this.SolutionState.
GetProjectState
(documentId.ProjectId);
Workspace\Solution\SolutionState.cs (10)
276
=> projectId != null &&
GetProjectState
(projectId) != null;
286
this.
GetProjectState
(documentId.ProjectId)!.DocumentStates.Contains(documentId);
297
this.
GetProjectState
(documentId.ProjectId)!.AdditionalDocumentStates.Contains(documentId);
308
this.
GetProjectState
(documentId.ProjectId)!.AnalyzerConfigDocumentStates.Contains(documentId);
336
var result =
GetProjectState
(projectId);
475
AddLanguageCountDelta(ref languageCountDeltas,
GetProjectState
(projectId)!.Language, amount: -1);
1256
var projectState = this.
GetProjectState
(documentId.ProjectId);
1281
var relatedProject = relatedProjectIdHint is null ? null :
GetProjectState
(relatedProjectIdHint);
1307
var projectState = this.
GetProjectState
(documentId.ProjectId);
1334
var projectState = @this.
GetProjectState
(documentId.ProjectId);
Workspace\Solution\SolutionState_Checksum.cs (1)
162
var projectState = this.
GetProjectState
(projectConeId);
Workspace\Solution\StateChecksums.cs (1)
296
var projectState = solution.
GetProjectState
(assetPath.ProjectId);