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