12 references to WithInsertBefore
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
IncrementalParsing\ChangingAsync.cs (1)
30var newTree = oldTree.WithInsertBefore("public", "async ");
IncrementalParsing\IncrementalParsingTests.cs (3)
1188syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 1208syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 1227syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString());
Parsing\FieldKeywordParsingTests.cs (1)
2413verifyMethod(tree.WithInsertBefore(" =>", "()"));
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");