43 references to InsertRange
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxListTests.cs (11)
98newList = list.InsertRange(0, new[] { nodeD, nodeE });
102newList = list.InsertRange(1, new[] { nodeD, nodeE });
106newList = list.InsertRange(2, new[] { nodeD, nodeE });
110newList = list.InsertRange(3, new[] { nodeD, nodeE });
173Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
174Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { nodeD }));
180Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
211newList = list.InsertRange(0, new[] { nodeD, nodeE });
222Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { nodeD }));
223Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
229Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Syntax\SyntaxListTests.vb (9)
60newList = list.InsertRange(0, {nodeD, nodeE})
64newList = list.InsertRange(1, {nodeD, nodeE})
68newList = list.InsertRange(2, {nodeD, nodeE})
72newList = list.InsertRange(3, {nodeD, nodeE})
135Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD}))
136Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(list.Count + 1, {nodeD}))
172newList = list.InsertRange(0, {nodeD, nodeE})
183Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(1, {nodeD}))
184Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD}))
Roslyn.Diagnostics.CSharp.Analyzers (3)