20 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 (18)
IncrementalParsing\IncrementalParsingTests.cs (8)
439var newTree = oldTree.WithInsertAt(0, "{ "); 912var newTree = startTree.WithInsertAt(1, "/"); 1430SyntaxTree newTree = oldTree.WithInsertAt(locationOfInsert, ";"); 1443var newTree = oldTree.WithInsertAt(oldText.IndexOf('@'), ";"); 1459SyntaxTree incrTree = origTree.WithInsertAt(0, diffText); 3043var newTree = oldTree.WithInsertAt(text.Length, " "); 3059var newTree = oldTree.WithInsertAt(text.Length, " "); 3771incrementalTree = 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 { }");