13 references to InsertNodesBefore
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
117newDocComment = newDocComment.InsertNodesBefore(nodeAfterNewParamNode, newNodeList);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (5)
2171var newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD }); 2179newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD }); 2197Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesBefore(then, new[] { stat1, stat2 })); 2235var newBlock = block.InsertNodesBefore(block.Statements[0], new[] { stmt1, stmt2 }); 2243newBlock = 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)
117newDocComment = 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)
1395=> root.InsertNodesBefore(node, newDeclarations);