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