20 references to WithInsertAt
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ReferenceManagerTests.cs (2)
1783
var tree2 = tree1.
WithInsertAt
(text1.Length, text2);
1826
var tree2 = tree1.
WithInsertAt
(text1.Length, text2);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
IncrementalParsing\IncrementalParsingTests.cs (8)
437
var newTree = oldTree.
WithInsertAt
(0, "{ ");
914
var newTree = startTree.
WithInsertAt
(1, "/");
1432
SyntaxTree newTree = oldTree.
WithInsertAt
(locationOfInsert, ";");
1445
var newTree = oldTree.
WithInsertAt
(oldText.IndexOf('@'), ";");
1461
SyntaxTree incrTree = origTree.
WithInsertAt
(0, diffText);
3045
var newTree = oldTree.
WithInsertAt
(text.Length, " ");
3061
var newTree = oldTree.
WithInsertAt
(text.Length, " ");
3736
incrementalTree = startTree.
WithInsertAt
(0, token);
Syntax\SyntaxDiffingTests.cs (6)
85
var newTree = oldTree.
WithInsertAt
(0, "class ");
103
var newTree = oldTree.
WithInsertAt
(0, "class A ");
121
var newTree = oldTree.
WithInsertAt
(0, "class A { }");
140
var newTree = oldTree.
WithInsertAt
(0, "class A { } ");
160
var newTree = oldTree.
WithInsertAt
(0, "namespace N { ");
178
var newTree = oldTree.
WithInsertAt
(10, "int X; ");
Syntax\SyntaxEquivalenceTests.cs (4)
59
var tree2 = tree1.
WithInsertAt
(0, "/* goo */");
70
var tree2 = tree1.
WithInsertAt
(0, "#if true \r\n\r\n#endif");
81
var tree2 = tree1.
WithInsertAt
(0, "#if false \r\n\r\n#endif");
92
var tree2 = tree1.
WithInsertAt
(0, "namespace N { }");