12 references to WithInsertBefore
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
IncrementalParsing\ChangingAsync.cs (1)
30var newTree = oldTree.WithInsertBefore("public", "async ");
IncrementalParsing\IncrementalParsingTests.cs (4)
408var newTree = oldTree.WithInsertBefore("class C", "#endregion\r\n"); 926syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 946syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 965syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString());
Syntax\SyntaxEquivalenceTests.cs (7)
102var tree2 = tree1.WithInsertBefore("}", "class C { }"); 152var tree2 = tree1.WithInsertBefore("}", "void Goo() { } "); 162var tree2 = tree1.WithInsertBefore("}", "int i; "); 301var tree2 = tree1.WithInsertBefore("{", ": B "); 321var tree2 = tree1.WithInsertBefore("class", "// Comment\r\n"); 331var tree2 = tree1.WithInsertBefore("class", "// "); 341var tree2 = tree1.WithInsertBefore("class", "/// Comment\r\n");