12 references to InsertNodesAfter
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (5)
2151
newNode = invocation.
InsertNodesAfter
(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD });
2159
newNode = invocation.
InsertNodesAfter
(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD });
2176
Assert.Throws<InvalidOperationException>(() => ifstatement.
InsertNodesAfter
(then, new StatementSyntax[] { }));
2215
newBlock = block.
InsertNodesAfter
(block.Statements[0], new[] { stmt1, stmt2 });
2223
newBlock = block.
InsertNodesAfter
(block.Statements[1], new[] { stmt1, stmt2 });
Syntax\SyntaxRewriterTests.cs (1)
411
var newNode2 = invocation.
InsertNodesAfter
(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD });
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
TestSyntaxNodes.vb (4)
1341
newNode = invocation.
InsertNodesAfter
(invocation.ArgumentList.Arguments(0), {argC, argD})
1349
newNode = invocation.
InsertNodesAfter
(invocation.ArgumentList.Arguments(1), {argC, argD})
1441
newBlock = ifBlock.
InsertNodesAfter
(ifBlock.Statements(0), {stmt1, stmt2})
1461
newBlock = ifBlock.
InsertNodesAfter
(ifBlock.Statements(1), {stmt1, stmt2})
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (2)
1398
=> root.
InsertNodesAfter
(node, newDeclarations);
1537
return newRoot.
InsertNodesAfter
(currentFirst, replacements.Skip(1));