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