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)
437var newTree = oldTree.WithInsertAt(0, "{ "); 914var newTree = startTree.WithInsertAt(1, "/"); 1432SyntaxTree newTree = oldTree.WithInsertAt(locationOfInsert, ";"); 1445var newTree = oldTree.WithInsertAt(oldText.IndexOf('@'), ";"); 1461SyntaxTree incrTree = origTree.WithInsertAt(0, diffText); 3045var newTree = oldTree.WithInsertAt(text.Length, " "); 3061var newTree = oldTree.WithInsertAt(text.Length, " "); 3736incrementalTree = 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 { }");