14 references to InsertNodesBefore
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
117newDocComment = newDocComment.InsertNodesBefore(nodeAfterNewParamNode, newNodeList);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2223var newRoot = root.InsertNodesBefore(root.DescendantNodes().Last(), [entry]);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (5)
2170var newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD }); 2178newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD }); 2196Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesBefore(then, new[] { stat1, stat2 })); 2234var newBlock = block.InsertNodesBefore(block.Statements[0], new[] { stmt1, stmt2 }); 2242newBlock = 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)
1338Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), {argC, argD}) 1346newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(1), {argC, argD}) 1432Dim newBlock = ifBlock.InsertNodesBefore(ifBlock.Statements(0), {stmt1, stmt2}) 1452newBlock = ifBlock.InsertNodesBefore(ifBlock.Statements(1), {stmt1, stmt2})
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1395=> root.InsertNodesBefore(node, newDeclarations);