17 references to InsertNodesBefore
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractAddDocCommentNodesCodeFixProvider.cs (1)
118newDocComment = newDocComment.InsertNodesBefore(nodeAfterNewParamNode, newNodeList);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2023var newRoot = root.InsertNodesBefore(root.DescendantNodes().Last(), new[] { entry });
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
147return bodyBlock.InsertNodesBefore(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (5)
2136var newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD }); 2144newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD }); 2162Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesBefore(then, new[] { stat1, stat2 })); 2200var newBlock = block.InsertNodesBefore(block.Statements[0], new[] { stmt1, stmt2 }); 2208newBlock = 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)
AbstractAddDocCommentNodesCodeFixProvider.cs (1)
118newDocComment = newDocComment.InsertNodesBefore(nodeAfterNewParamNode, newNodeList);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Syntax\SyntaxRewriterTests.vb (1)
573Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), New SyntaxNode() {argC, argD})
TestSyntaxNodes.vb (5)
1337Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), {argC, argD}) 1345newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(1), {argC, argD}) 1361Assert.Throws(Of InvalidOperationException)(Function() invocation.InsertNodesBefore(expA, {expC, expD})) 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)
1388=> root.InsertNodesBefore(node, newDeclarations);