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)
188
select (project, from documentId in projectDocumentIds select project.State.DocumentStates.
GetState
(documentId));
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\Solution\ChecksumCollection.cs (1)
67
var state = documentStates.
GetState
(hintDocument);
Workspace\Solution\Project.cs (1)
351
var generatedDocumentState = generatedDocumentStates.
GetState
(documentId);
Workspace\Solution\SolutionCompilationState.cs (2)
1725
var oldDocumentState = oldProjectState.DocumentStates.
GetState
(documentId);
1888
var documentState = this.SolutionState.GetProjectState(documentId.ProjectId)?.DocumentStates.
GetState
(documentId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
914
return state is FinalCompilationTrackerState finalState ? finalState.GeneratorInfo.Documents.
GetState
(documentId) : null;
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
127
var existingDocument = oldGeneratedDocuments.
GetState
(documentId);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
28
var document = projectState.DocumentStates.
GetState
(documentId);
Workspace\Solution\SolutionState.cs (2)
1283
var documentState = projectState.DocumentStates.
GetState
(documentId);
1338
var documentState = projectState.DocumentStates.
GetState
(documentId);
Workspace\Workspace.cs (2)
1785
var document = projectChanges.OldProject.State.DocumentStates.
GetState
(documentId) ??
1786
projectChanges.NewProject.State.DocumentStates.
GetState
(documentId)!;