18 references to GetProjectState
Microsoft.CodeAnalysis.Workspaces (18)
Workspace\Solution\Solution.cs (4)
86
internal ProjectState? GetProjectState(ProjectId projectId) => this.SolutionState.
GetProjectState
(projectId);
167
var state = solution.SolutionState.
GetProjectState
(projectId);
1127
=> this.SolutionState.
GetProjectState
(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
1886
var referencedProjectState = this.SolutionState.
GetProjectState
(projectReference.ProjectId);
Workspace\Solution\SolutionCompilationState.cs (1)
1158
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);
348
var result =
GetProjectState
(projectId);
487
AddLanguageCountDelta(ref languageCountDeltas,
GetProjectState
(projectId)!.Language, amount: -1);
1269
var projectState = this.
GetProjectState
(documentId.ProjectId);
1294
var relatedProject = relatedProjectIdHint is null ? null :
GetProjectState
(relatedProjectIdHint);
1320
var projectState = this.
GetProjectState
(documentId.ProjectId);
1347
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);