16 references to CreateDocumentNotFoundException
Microsoft.CodeAnalysis.Workspaces (16)
Shared\Extensions\ISolutionExtensions.cs (1)
57throw CreateDocumentNotFoundException(documentId);
Shared\Extensions\ProjectExtensions.cs (5)
35=> project.GetDocument(documentId) ?? throw ISolutionExtensions.CreateDocumentNotFoundException(documentId); 41=> project.GetAdditionalDocument(documentId) ?? throw ISolutionExtensions.CreateDocumentNotFoundException(documentId); 44=> project.GetAnalyzerConfigDocument(documentId) ?? throw ISolutionExtensions.CreateDocumentNotFoundException(documentId); 47=> project.GetTextDocument(documentId) ?? throw ISolutionExtensions.CreateDocumentNotFoundException(documentId); 52return document ?? throw ISolutionExtensions.CreateDocumentNotFoundException(documentId);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (7)
65return solution.GetDocument(documentId) ?? throw CreateDocumentNotFoundException(documentId); 85throw CreateDocumentNotFoundException(documentId); 94=> (await solution.GetDocumentAsync(documentId, includeSourceGenerated, cancellationToken).ConfigureAwait(false)) ?? throw CreateDocumentNotFoundException(documentId); 97=> (await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false)) ?? throw CreateDocumentNotFoundException(documentId); 101=> solution.GetAdditionalDocument(documentId) ?? throw CreateDocumentNotFoundException(documentId); 104=> solution.GetAnalyzerConfigDocument(documentId) ?? throw CreateDocumentNotFoundException(documentId); 117throw CreateDocumentNotFoundException(documentId);
Workspace\Solution\Solution.cs (3)
1799throw ISolutionExtensions.CreateDocumentNotFoundException(documentId); 1833throw ISolutionExtensions.CreateDocumentNotFoundException(documentId); 1859throw ISolutionExtensions.CreateDocumentNotFoundException(documentId);