17 references to InsertRange
Microsoft.CodeAnalysis (2)
Syntax\SyntaxTokenList.cs (2)
326return InsertRange(this.Count, tokens); 341return InsertRange(index, new[] { token });
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxReplacer.cs (2)
524return list.InsertRange(index + 1, _newTokens); 527return list.InsertRange(index, _newTokens);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTokenListTests.cs (11)
107newList = list.InsertRange(0, new[] { tokenD, tokenE }); 111newList = list.InsertRange(1, new[] { tokenD, tokenE }); 115newList = list.InsertRange(2, new[] { tokenD, tokenE }); 119newList = list.InsertRange(3, new[] { tokenD, tokenE }); 182Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD })); 183Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD })); 189Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null)); 220newList = list.InsertRange(0, new[] { tokenD, tokenE }); 231Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD })); 232Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD })); 238Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null));
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\SyntaxReplacer.vb (2)
367Return list.InsertRange(index, Me._newTokens) 369Return list.InsertRange(index + 1, Me._newTokens)