22 references to WithInsertAt
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ReferenceManagerTests.cs (2)
1783var tree2 = tree1.WithInsertAt(text1.Length, text2); 1826var tree2 = tree1.WithInsertAt(text1.Length, text2);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (20)
IncrementalParsing\IncrementalParsingTests.cs (10)
312var newTree = oldTree.WithInsertAt(0, "#line 100\r\n"); 436var newTree = oldTree.WithInsertAt(0, "{ "); 652var newTree = startTree.WithInsertAt(1, "/"); 1170SyntaxTree newTree = oldTree.WithInsertAt(locationOfInsert, ";"); 1183var newTree = oldTree.WithInsertAt(oldText.IndexOf('@'), ";"); 1199SyntaxTree incrTree = origTree.WithInsertAt(0, diffText); 2613var changedTree = originalTree.WithInsertAt(text.Length, "\r\n hash++;"); 2783var newTree = oldTree.WithInsertAt(text.Length, " "); 2799var newTree = oldTree.WithInsertAt(text.Length, " "); 3474incrementalTree = startTree.WithInsertAt(0, token);
Syntax\SyntaxDiffingTests.cs (6)
85var newTree = oldTree.WithInsertAt(0, "class "); 103var newTree = oldTree.WithInsertAt(0, "class A "); 121var newTree = oldTree.WithInsertAt(0, "class A { }"); 140var newTree = oldTree.WithInsertAt(0, "class A { } "); 160var newTree = oldTree.WithInsertAt(0, "namespace N { "); 178var newTree = oldTree.WithInsertAt(10, "int X; ");
Syntax\SyntaxEquivalenceTests.cs (4)
59var tree2 = tree1.WithInsertAt(0, "/* goo */"); 70var tree2 = tree1.WithInsertAt(0, "#if true \r\n\r\n#endif"); 81var tree2 = tree1.WithInsertAt(0, "#if false \r\n\r\n#endif"); 92var tree2 = tree1.WithInsertAt(0, "namespace N { }");