12 references to WithInsertBefore
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
IncrementalParsing\ChangingAsync.cs (1)
30var newTree = oldTree.WithInsertBefore("public", "async ");
IncrementalParsing\IncrementalParsingTests.cs (4)
407var newTree = oldTree.WithInsertBefore("class C", "#endregion\r\n"); 813syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 833syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 852syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString());
Syntax\SyntaxEquivalenceTests.cs (7)
101var tree2 = tree1.WithInsertBefore("}", "class C { }"); 151var tree2 = tree1.WithInsertBefore("}", "void Goo() { } "); 161var tree2 = tree1.WithInsertBefore("}", "int i; "); 300var tree2 = tree1.WithInsertBefore("{", ": B "); 320var tree2 = tree1.WithInsertBefore("class", "// Comment\r\n"); 330var tree2 = tree1.WithInsertBefore("class", "// "); 340var tree2 = tree1.WithInsertBefore("class", "/// Comment\r\n");