14 references to GetState
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
227.DocumentStates.GetState(document1.Id) 234.DocumentStates.GetState(document2.Id)
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditAndContinueService.cs (1)
188select (project, from documentId in projectDocumentIds select project.State.DocumentStates.GetState(documentId));
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\Solution\ChecksumCollection.cs (1)
67var state = documentStates.GetState(hintDocument);
Workspace\Solution\Project.cs (1)
351var generatedDocumentState = generatedDocumentStates.GetState(documentId);
Workspace\Solution\SolutionCompilationState.cs (2)
1725var oldDocumentState = oldProjectState.DocumentStates.GetState(documentId); 1888var documentState = this.SolutionState.GetProjectState(documentId.ProjectId)?.DocumentStates.GetState(documentId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
914return state is FinalCompilationTrackerState finalState ? finalState.GeneratorInfo.Documents.GetState(documentId) : null;
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
127var existingDocument = oldGeneratedDocuments.GetState(documentId);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
28var document = projectState.DocumentStates.GetState(documentId);
Workspace\Solution\SolutionState.cs (2)
1283var documentState = projectState.DocumentStates.GetState(documentId); 1338var documentState = projectState.DocumentStates.GetState(documentId);
Workspace\Workspace.cs (2)
1785var document = projectChanges.OldProject.State.DocumentStates.GetState(documentId) ?? 1786projectChanges.NewProject.State.DocumentStates.GetState(documentId)!;