13 references to InsertNodesBefore
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
118newDocComment = newDocComment.InsertNodesBefore(nodeAfterNewParamNode, newNodeList);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (5)
2147var newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD }); 2155newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD }); 2173Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesBefore(then, new[] { stat1, stat2 })); 2211var newBlock = block.InsertNodesBefore(block.Statements[0], new[] { stmt1, stmt2 }); 2219newBlock = block.InsertNodesBefore(block.Statements[1], new[] { stmt1, stmt2 });
Syntax\SyntaxRewriterTests.cs (1)
404var newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD });
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
118newDocComment = newDocComment.InsertNodesBefore(nodeAfterNewParamNode, newNodeList);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
TestSyntaxNodes.vb (4)
1337Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), {argC, argD}) 1345newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(1), {argC, argD}) 1431Dim newBlock = ifBlock.InsertNodesBefore(ifBlock.Statements(0), {stmt1, stmt2}) 1451newBlock = ifBlock.InsertNodesBefore(ifBlock.Statements(1), {stmt1, stmt2})
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1392=> root.InsertNodesBefore(node, newDeclarations);