7 references to TryGetState
Microsoft.CodeAnalysis.Workspaces (7)
Workspace\Solution\Project.cs (3)
466
(documentId, project) => project.State.DocumentStates.
TryGetState
(documentId, out var state) ? new Document(project, state) : null;
469
(documentId, project) => project.State.AdditionalDocumentStates.
TryGetState
(documentId, out var state) ? new AdditionalDocument(project, state) : null;
472
(documentId, project) => project.State.AnalyzerConfigDocumentStates.
TryGetState
(documentId, out var state) ? new AnalyzerConfigDocument(project, state) : null;
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (2)
116
underlyingSourceGeneratedDocuments.
TryGetState
(id, out var existingState);
216
if (_replacementDocumentStates.
TryGetState
(documentId, out var replacementState))
Workspace\Solution\StateChecksums.cs (1)
168
Contract.ThrowIfFalse(compilationState.FrozenSourceGeneratedDocumentStates.
TryGetState
(documentId, out var state));
Workspace\Solution\TextDocumentStates.cs (1)
231
if (!oldStates.
TryGetState
(id, out var oldState))