7 references to TryGetState
Microsoft.CodeAnalysis.Workspaces (7)
Workspace\Solution\Project.cs (3)
447
(documentId, project) => project._projectState.DocumentStates.
TryGetState
(documentId, out var state) ? new Document(project, state) : null;
450
(documentId, project) => project._projectState.AdditionalDocumentStates.
TryGetState
(documentId, out var state) ? new AdditionalDocument(project, state) : null;
453
(documentId, project) => project._projectState.AnalyzerConfigDocumentStates.
TryGetState
(documentId, out var state) ? new AnalyzerConfigDocument(project, state) : null;
Workspace\Solution\ProjectState.cs (1)
312
if (documentId != null && _projectState.DocumentStates.
TryGetState
(documentId, out var documentState))
Workspace\Solution\SolutionState.CompilationTracker.cs (1)
195
if (inProgressProject.DocumentStates.
TryGetState
(docState.Id, out var oldState))
Workspace\Solution\SolutionState.GeneratedFileReplacingCompilationTracker.cs (1)
86
underlyingSourceGeneratedDocuments.
TryGetState
(_replacedGeneratedDocumentState.Id, out var existingState);
Workspace\Solution\TextDocumentStates.cs (1)
171
if (!oldStates.
TryGetState
(id, out var oldState))