14 references to RemoveReferences
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Compilation\CompilationAPITests.cs (12)
514comp = comp.RemoveReferences(ref2); 522compCollection = compCollection.AddReferences(hs).RemoveReferences(ref1, ref2, ref3, ref4); 528compCollection = compCollection.AddReferences(col).RemoveReferences(ref1, ref2, ref3); 539compCollection = compCollection.AddReferences(stack).RemoveReferences(ref1, ref3, ref2); 550compCollection = compCollection.AddReferences(queue).RemoveReferences(ref3, ref2, ref1); 971comp1 = comp1.AddReferences(listRef).AddSyntaxTrees(t1).RemoveReferences().RemoveSyntaxTrees(); 1283comp = comp.RemoveReferences(compRef1).ReplaceReference(modRef1, compRef1); 1301comp = comp.RemoveReferences(item); 1424comp = comp.AddReferences(listRef).AddReferences(ref2).RemoveReferences(ref1, ref3, ref4).ReplaceReference(ref2, ref2); 1428Assert.Throws<ArgumentException>(() => comp.AddReferences(listRef).AddReferences(ref2).RemoveReferences(ref1, ref2, ref3, ref4).ReplaceReference(ref2, ref2)); 1438Assert.Throws<ArgumentException>(() => comp = comp.RemoveReferences(ref1)); 2059c3 = c2.RemoveReferences(MscorlibRef);
Symbols\CompilationCreationTests.cs (2)
2629c = c.RemoveReferences(systemRef); 2632c = c.RemoveReferences(mscorlibRef);