9 references to WithInsertAt
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\ReferenceManagerTests.vb (2)
1483
Dim tree2 = tree1.
WithInsertAt
(tree1.ToString().Length, "'Comment")
1528
Dim tree2 = tree1.
WithInsertAt
(tree1.ToString().Length, "End Namespace")
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (7)
IncrementalParser\IncrementalParser.vb (2)
1702
Dim newTree1 = oldTree1.
WithInsertAt
(text.Length, " ")
1718
Dim newTree2 = oldTree2.
WithInsertAt
(text.Length, " ")
Syntax\SyntaxEquivalenceTests.vb (4)
40
Dim tree2 = tree1.
WithInsertAt
(0, "' goo")
49
Dim tree2 = tree1.
WithInsertAt
(0, NewLines("#if true \n\n#end if"))
58
Dim tree2 = tree1.
WithInsertAt
(0, NewLines("#if false \n\n#end if"))
67
Dim tree2 = tree1.
WithInsertAt
(0, NewLines("namespace N \n end namespace"))
TestSyntaxNodes.vb (1)
2896
Dim newTree = oldTree.
WithInsertAt
(0, "class B : End Class")