28 references to RemoveSyntaxTrees
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
978
return this.
RemoveSyntaxTrees
(oldTree);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Compilation\CompilationAPITests.cs (21)
795
comp = comp.
RemoveSyntaxTrees
(t1, withErrorTree, withErrorTree1, withErrorTreeVB);
826
Assert.Throws<ArgumentException>(() => comp = comp.
RemoveSyntaxTrees
(SyntaxFactory.ParseSyntaxTree(s1)));
830
Assert.Throws<ArgumentException>(() => comp = comp.
RemoveSyntaxTrees
(withErrorTree));
850
compCollection = compCollection.AddSyntaxTrees(hs).
RemoveSyntaxTrees
(t4, t5, t6);
856
compCollection = compCollection.
RemoveSyntaxTrees
(t4, t5, t6);
867
compCollection = compCollection.
RemoveSyntaxTrees
(t4, t6, t5);
878
compCollection = compCollection.
RemoveSyntaxTrees
(t4, t6, t5);
889
comp = comp.
RemoveSyntaxTrees
(t1);
893
comp = comp.
RemoveSyntaxTrees
(withErrorTree1);
902
comp = comp.
RemoveSyntaxTrees
(withErrorTreeVB);
910
comp = comp.
RemoveSyntaxTrees
(withWarning);
940
comp = comp.AddSyntaxTrees(listSyntaxTree).
RemoveSyntaxTrees
(t2);
945
comp = comp.
RemoveSyntaxTrees
(t1).AddSyntaxTrees(listSyntaxTree).
RemoveSyntaxTrees
(t2);
972
comp1 = comp1.AddReferences(listRef).AddSyntaxTrees(t1).RemoveReferences().
RemoveSyntaxTrees
();
1577
comp.
RemoveSyntaxTrees
(null);
1611
comp = comp.
RemoveSyntaxTrees
(t3);
1624
comp.
RemoveSyntaxTrees
(new SyntaxTree[] { t4 }).GetSemanticModel(t4);
2102
var ar2 = arc.
RemoveSyntaxTrees
(tc);
2105
var c = arc.
RemoveSyntaxTrees
(ta, tr);
2108
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)
2926
var compilation2 = compilation1.
RemoveSyntaxTrees
(treeList2);
2935
var compilation4 = compilation3.
RemoveSyntaxTrees
(treeList4);
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
761
var comp3 = comp2.
RemoveSyntaxTrees
(source0);