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