27 references to WithReplaceFirst
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (26)
Syntax\SyntaxEquivalenceTests.vb (26)
83
Dim tree2 = tree1.
WithReplaceFirst
("N", "N1")
91
Dim tree2 = tree1.
WithReplaceFirst
("z", "y")
99
Dim tree2 = tree1.
WithReplaceFirst
("N", "N")
107
Dim tree2 = tree1.
WithReplaceFirst
("z", "z")
139
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
147
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
155
Dim tree2 = tree1.
WithReplaceFirst
("true", "false")
163
Dim tree2 = tree1.
WithReplaceFirst
("Write", "WriteLine")
171
Dim tree2 = tree1.
WithReplaceFirst
("System", "System.Linq")
187
Dim tree2 = tree1.
WithReplaceFirst
("sub Goo()", "function Goo() as Integer")
219
Dim tree2 = tree1.
WithReplaceFirst
(NewLines("sub Goo() \n end sub \n"), NewLines("\n #if true \n sub Goo() \n end sub \n #end if \n"))
227
Dim tree2 = tree1.
WithReplaceFirst
(NewLines("sub Goo() \n end sub \n"), NewLines("\n #if false \n sub Goo() \n end sub \n #end if \n"))
235
Dim tree2 = tree1.
WithReplaceFirst
(NewLines("dim i as Integer \n"), NewLines("\n #if true \n dim i as Integer \n #end if \n"))
243
Dim tree2 = tree1.
WithReplaceFirst
(NewLines("dim i as Integer \n"), NewLines("\n #if false \n dim i as Integer \n #end if \n"))
268
Dim tree2 = tree1.
WithReplaceFirst
("N1", "N2")
272
tree2 = tree1.
WithReplaceFirst
("Hello", "World")
298
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
306
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
314
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
322
Dim tree2 = tree1.
WithReplaceFirst
("7", "8")
325
tree2 = tree1.
WithReplaceFirst
("5", "6")
333
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
341
Dim tree2 = tree1.
WithReplaceFirst
("5", "6")
344
tree2 = tree1.
WithReplaceFirst
("7", "8")
482
Dim tree2 = tree1.
WithReplaceFirst
("Console.Write(0)", "' Console.Write(0) ")
490
Dim tree2 = tree1.
WithReplaceFirst
(NewLines("sub Goo() \n end sub \n"), NewLines("' sub Goo() \n ' end sub \n"))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
SyntaxTreeExtensions.vb (1)
57
Return
WithReplaceFirst
(syntaxTree, oldText, String.Empty)