7 references to InsertRange
Microsoft.CodeAnalysis (3)
Syntax\SeparatedSyntaxList.cs (1)
446
return new SeparatedSyntaxList<TNode>(nodesWithSeps.
InsertRange
(insertionIndex, nodesToInsertWithSeparators));
Syntax\SyntaxNodeOrTokenList.cs (2)
300
return
InsertRange
(this.Count, nodesOrTokens);
315
return
InsertRange
(index, SpecializedCollections.SingletonEnumerable(nodeOrToken));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxNodeOrTokenListTests.cs (4)
200
newList = list.
InsertRange
(0, new[] { tokenD, nodeE });
211
Assert.Throws<ArgumentOutOfRangeException>(() => list.
InsertRange
(1, new[] { tokenD }));
212
Assert.Throws<ArgumentOutOfRangeException>(() => list.
InsertRange
(-1, new[] { tokenD }));
216
Assert.Throws<ArgumentNullException>(() => list.
InsertRange
(0, (IEnumerable<SyntaxNodeOrToken>)null));