11 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)
1822var newRoot = root.InsertNodesBefore(root.DescendantNodes().Last(), [entry]);
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
146return bodyBlock.InsertNodesBefore(
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.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1448=> root.InsertNodesBefore(node, newDeclarations);