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