16 references to ReplaceReference
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\CompilationAPITests.cs (14)
508comp = comp.ReplaceReference(ref1, ref2); 1172comp = comp.ReplaceReference(item, item); 1207comp = comp.ReplaceReference(compRef2, ref2); 1212comp = comp.ReplaceReference(ref1, compRef2); 1283comp = comp.RemoveReferences(compRef1).ReplaceReference(modRef1, compRef1); 1290comp = comp.ReplaceReference(compRef1, modRef1); 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)); 1443Assert.Throws<ArgumentException>(() => comp = comp.ReplaceReference(MscorlibRef, ref1)); 1457comp = comp.ReplaceReference(ref1, null); 1464comp = comp.ReplaceReference(newReference: ref1, oldReference: null); 1478comp = comp.ReplaceReference(ref1, ref2); 1486comp.ReplaceReference(newReference: NetFramework.System, oldReference: ref2); 2056c3 = c2.ReplaceReference(MscorlibRef, SystemCoreRef);
Compilation\GetImportScopesTests.cs (1)
404return comp.ReplaceReference(reference, reference.WithAliases(ImmutableArray.CreateRange(aliases)));
Symbols\CompilationCreationTests.cs (1)
2626c = c.ReplaceReference(systemCoreRef, systemRef);