16 references to InsertRange
Microsoft.CodeAnalysis (3)
Syntax\SeparatedSyntaxList.cs (3)
375return InsertRange(this.Count, nodes); 390return InsertRange(index, new[] { node }); 556return listWithFirstReplaced.InsertRange(index + 1, newNodeList);
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxReplacer.cs (2)
457return list.InsertRange(index + 1, _newNodes.Cast<TNode>()); 460return list.InsertRange(index, _newNodes.Cast<TNode>());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
50return switchNode.WithArms(switchNode.Arms.InsertRange(insertLocation, newArms));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
22var newList = separatedList.InsertRange(index, nodes);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
194invocation.ArgumentList.Arguments.InsertRange(insertionIndex, additionalArguments)));
src\roslyn\src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
50return switchNode.WithArms(switchNode.Arms.InsertRange(insertLocation, newArms));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1141return WithAttributeArgumentList(declaration, existingArgumentList.WithArguments(existingArgumentList.Arguments.InsertRange(index, newArgumentList.Arguments))); 2308var newList = currentList.WithParameters(currentList.Parameters.InsertRange(index, newParameters.Parameters));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
22var newList = separatedList.InsertRange(index, nodes);
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\SyntaxReplacer.vb (2)
317Return list.InsertRange(index, Me._replacementNodes.Cast(Of TNode)) 319Return list.InsertRange(index + 1, Me._replacementNodes.Cast(Of TNode))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
3204list = list.WithArguments(list.Arguments.InsertRange(index, newArguments.Arguments))
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
22var newList = separatedList.InsertRange(index, nodes);