29 references to GetRequiredDocument
Microsoft.CodeAnalysis.Workspaces (29)
CodeActions\CodeAction_Cleanup.cs (2)
92
var document = changedSolution.
GetRequiredDocument
(documentId);
155
var document = solution.
GetRequiredDocument
(documentId);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (2)
171
changedDocuments.AddRange(changedDocumentIds.Select(id => changedSolution.
GetRequiredDocument
(id)));
215
var originalDocument = fixAllContext.Solution.
GetRequiredDocument
(docId);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
57
.SelectAsArrayAsync(async documentId => (documentId, await cleanedSolution.
GetRequiredDocument
(documentId).GetTextAsync(cancellationToken).ConfigureAwait(false)))
FindSymbols\SymbolFinder.cs (1)
209
var linkedDocument = solution.
GetRequiredDocument
(linkedDocumentId);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
790
var document = originalSolution.
GetRequiredDocument
(documentId);
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
152
var document = solution.
GetRequiredDocument
(documentId);
Rename\IRemoteRenamerService.cs (1)
94
var document = solution.
GetRequiredDocument
(DocumentId);
Rename\Renamer.RenameDocumentActionSet.cs (2)
102
document = solution.
GetRequiredDocument
(documentId);
120
return solution.
GetRequiredDocument
(_documentId);
Shared\Extensions\DocumentExtensions.cs (1)
26
=> document.Project.Solution.WithOptions(options).
GetRequiredDocument
(document.Id);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
223
yield return solution.
GetRequiredDocument
(linkedDocumentId);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
484
var attributes = w.CurrentSolution.
GetRequiredDocument
(documentId).State.Attributes;
Workspace\Solution\Document.cs (7)
386
=> this.Project.Solution.WithDocumentSourceCodeKind(this.Id, kind).
GetRequiredDocument
(Id);
392
=> this.Project.Solution.WithDocumentText(this.Id, text, PreservationMode.PreserveIdentity).
GetRequiredDocument
(Id);
398
=> this.Project.Solution.WithDocumentSyntaxRoot(this.Id, root, PreservationMode.PreserveIdentity).
GetRequiredDocument
(Id);
404
=> this.Project.Solution.WithDocumentName(this.Id, name).
GetRequiredDocument
(Id);
410
=> this.Project.Solution.WithDocumentFolders(this.Id, folders).
GetRequiredDocument
(Id);
416
=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).
GetRequiredDocument
(Id);
548
return newSolution.
GetRequiredDocument
(this.Id);
Workspace\TextExtensions.cs (2)
39
return relatedIds.SelectAsArray((id, solution) => solution.
GetRequiredDocument
(id), solution);
115
return relatedIds.SelectAsArray((id, solution) => solution.
GetRequiredDocument
(id), solution);
Workspace\Workspace.cs (4)
352
var relatedDocument = solution.
GetRequiredDocument
(relatedDocumentId);
388
changedDocument ??= solution.
GetRequiredDocument
(changedDocumentId);
1308
var newDocument = newSolution.
GetRequiredDocument
(documentId);
1357
onAfterUpdate: (_, newSolution) => this.OnDocumentTextChanged(newSolution.
GetRequiredDocument
(documentId)));
Workspace\Workspace_Editor.cs (2)
419
var newDoc = newSolution.
GetRequiredDocument
(documentId);
696
var newDoc = newSolution.
GetRequiredDocument
(documentId);