8 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.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)
1908var document = projectChanges.NewProject.GetAdditionalDocument(documentId)!; 1932var newDoc = projectChanges.NewProject.GetAdditionalDocument(documentId)!;