31 references to ReplaceSyntaxTree
IdeCoreBenchmarks (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
SourceGeneration\SyntaxAwareGeneratorTests.cs (9)
1264compilation = compilation.ReplaceSyntaxTree(firstTree, newTree);
1435compilation = compilation.ReplaceSyntaxTree(firstTree, dummyTree)
1436.ReplaceSyntaxTree(lastTree, firstTree)
1437.ReplaceSyntaxTree(dummyTree, lastTree);
1468compilation = compilation.ReplaceSyntaxTree(firstTree, dummyTree)
1469.ReplaceSyntaxTree(lastTree, firstTree)
1470.ReplaceSyntaxTree(dummyTree, newLastTree);
1542compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source2, parseOptions));
1655compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source2, parseOptions));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\UsedAssembliesTests.cs (3)
164yield return (comp.ReplaceSyntaxTree(tree, CSharpTestBase.Parse(builder.ToString(), tree.FilePath, (CSharpParseOptions)tree.Options)), before, after);
192yield return (comp.ReplaceSyntaxTree(tree, CSharpTestBase.Parse(builder.ToString(), tree.FilePath, parseOptions)), before, after);
203yield return (comp.ReplaceSyntaxTree(tree, CSharpTestBase.Parse(builder.ToString(), tree.FilePath, parseOptions)).
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)