12 references to WithInsertBefore
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
IncrementalParsing\ChangingAsync.cs (1)
30
var newTree = oldTree.
WithInsertBefore
("public", "async ");
IncrementalParsing\IncrementalParsingTests.cs (3)
1188
syntaxTree = syntaxTree.
WithInsertBefore
("} // Point", c.ToString());
1208
syntaxTree = syntaxTree.
WithInsertBefore
("} // Point", c.ToString());
1227
syntaxTree = syntaxTree.
WithInsertBefore
("} // Point", c.ToString());
Parsing\FieldKeywordParsingTests.cs (1)
2413
verifyMethod(tree.
WithInsertBefore
(" =>", "()"));
Syntax\SyntaxEquivalenceTests.cs (7)
102
var tree2 = tree1.
WithInsertBefore
("}", "class C { }");
152
var tree2 = tree1.
WithInsertBefore
("}", "void Goo() { } ");
162
var tree2 = tree1.
WithInsertBefore
("}", "int i; ");
301
var tree2 = tree1.
WithInsertBefore
("{", ": B ");
321
var tree2 = tree1.
WithInsertBefore
("class", "// Comment\r\n");
331
var tree2 = tree1.
WithInsertBefore
("class", "// ");
341
var tree2 = tree1.
WithInsertBefore
("class", "/// Comment\r\n");