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