28 references to RemoveSyntaxTrees
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
995return this.RemoveSyntaxTrees(oldTree);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Compilation\CompilationAPITests.cs (21)
794comp = comp.RemoveSyntaxTrees(t1, withErrorTree, withErrorTree1, withErrorTreeVB); 825Assert.Throws<ArgumentException>(() => comp = comp.RemoveSyntaxTrees(SyntaxFactory.ParseSyntaxTree(s1))); 829Assert.Throws<ArgumentException>(() => comp = comp.RemoveSyntaxTrees(withErrorTree)); 849compCollection = compCollection.AddSyntaxTrees(hs).RemoveSyntaxTrees(t4, t5, t6); 855compCollection = compCollection.RemoveSyntaxTrees(t4, t5, t6); 866compCollection = compCollection.RemoveSyntaxTrees(t4, t6, t5); 877compCollection = compCollection.RemoveSyntaxTrees(t4, t6, t5); 888comp = comp.RemoveSyntaxTrees(t1); 892comp = comp.RemoveSyntaxTrees(withErrorTree1); 901comp = comp.RemoveSyntaxTrees(withErrorTreeVB); 909comp = comp.RemoveSyntaxTrees(withWarning); 939comp = comp.AddSyntaxTrees(listSyntaxTree).RemoveSyntaxTrees(t2); 944comp = comp.RemoveSyntaxTrees(t1).AddSyntaxTrees(listSyntaxTree).RemoveSyntaxTrees(t2); 971comp1 = comp1.AddReferences(listRef).AddSyntaxTrees(t1).RemoveReferences().RemoveSyntaxTrees(); 1576comp.RemoveSyntaxTrees(null); 1610comp = comp.RemoveSyntaxTrees(t3); 1623comp.RemoveSyntaxTrees(new SyntaxTree[] { t4 }).GetSemanticModel(t4); 2101var ar2 = arc.RemoveSyntaxTrees(tc); 2104var c = arc.RemoveSyntaxTrees(ta, tr); 2107var none1 = c.RemoveSyntaxTrees(tc);
Compilation\LoadDirectiveTests.cs (3)
116compilation = compilation.RemoveSyntaxTrees(external2); 168compilation = compilation.RemoveSyntaxTrees(newTree); 188compilation = compilation.RemoveSyntaxTrees(newTree);
Symbols\CompilationCreationTests.cs (2)
2927var compilation2 = compilation1.RemoveSyntaxTrees(treeList2); 2936var compilation4 = compilation3.RemoveSyntaxTrees(treeList4);
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
761var comp3 = comp2.RemoveSyntaxTrees(source0);