9 references to GetAdditionalDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1062
var additionalDocument = project.
GetAdditionalDocument
(additionalDoc.Id);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\XamlDiagnosticSourceProvider.cs (1)
31
document.Project.
GetAdditionalDocument
(document.Id) != null)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
531
var document = project.GetDocument(documentId) ?? project.
GetAdditionalDocument
(documentId) ?? project.GetAnalyzerConfigDocument(documentId);
Microsoft.CodeAnalysis.Workspaces (6)
Shared\Extensions\ProjectExtensions.cs (1)
41
=> project.
GetAdditionalDocument
(documentId) ?? throw new InvalidOperationException(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document);
Workspace\Solution\Project.cs (2)
201
public IEnumerable<TextDocument> AdditionalDocuments => AdditionalDocumentIds.Select(
GetAdditionalDocument
)!;
275
var document = GetDocument(documentId) ??
GetAdditionalDocument
(documentId) ?? GetAnalyzerConfigDocument(documentId);
Workspace\Solution\Solution.cs (1)
277
return this.GetProject(documentId.ProjectId)!.
GetAdditionalDocument
(documentId);
Workspace\Workspace.cs (2)
1950
var document = projectChanges.NewProject.
GetAdditionalDocument
(documentId)!;
1974
var newDoc = projectChanges.NewProject.
GetAdditionalDocument
(documentId)!;