8 references to RemoveDocuments
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
398static (solution, documentIds) => solution.RemoveDocuments(documentIds),
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
588static (s, ids) => s.RemoveDocuments(ids),
Workspace\Solution\Project.cs (1)
770return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
127Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(default)); 128Assert.Throws<InvalidOperationException>(() => solution.RemoveDocuments(ImmutableArray.Create(s_unrelatedDocumentId))); 129Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(ImmutableArray.Create((DocumentId)null!))); 2695solution = solution.RemoveDocuments(ImmutableArray.Create(documentInfo1.Id, documentInfo2.Id)); 2719solution = solution.RemoveDocuments(ImmutableArray.Create(documentInfo1.Id, documentInfo2.Id));