11 references to GetTextDocument
Microsoft.CodeAnalysis.Workspaces (11)
CodeActions\Operations\ApplyChangesOperation.cs (1)
139
var currentDocument = currentSolution.
GetTextDocument
(documentId);
Shared\Extensions\ISolutionExtensions.cs (2)
40
=> solution.
GetTextDocument
(documentId)?.Kind;
50
return solution.
GetTextDocument
(documentId);
Shared\Extensions\ProjectExtensions.cs (1)
20
=> project.Solution.
GetTextDocument
(documentId);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
80
=> solution.
GetTextDocument
(documentId) ?? throw CreateDocumentNotFoundException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (2)
51
return textDocument.Project.Solution.WithAdditionalDocumentText(textDocument.Id, text, PreservationMode.PreserveIdentity).
GetTextDocument
(textDocument.Id)!;
60
return textDocument.Project.Solution.WithAnalyzerConfigDocumentText(textDocument.Id, text, PreservationMode.PreserveIdentity).
GetTextDocument
(textDocument.Id)!;
Workspace\Workspace_Editor.cs (4)
569
var oldDocument = oldSolution.
GetTextDocument
(documentId);
761
var oldDocument = oldSolution.
GetTextDocument
(documentId);
869
var document = newSolution.
GetTextDocument
(docId);
887
var document = newSolution.
GetTextDocument
(docId);