10 references to InsertRange
Microsoft.CodeAnalysis (2)
Syntax\SyntaxTokenList.cs (2)
325
return
InsertRange
(this.Count, tokens);
340
return
InsertRange
(index, new[] { token });
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxReplacer.cs (2)
479
return list.
InsertRange
(index + 1, _newTokens);
482
return list.
InsertRange
(index, _newTokens);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTokenListTests.cs (4)
220
newList = list.
InsertRange
(0, new[] { tokenD, tokenE });
231
Assert.Throws<ArgumentOutOfRangeException>(() => list.
InsertRange
(-1, new[] { tokenD }));
232
Assert.Throws<ArgumentOutOfRangeException>(() => list.
InsertRange
(list.Count + 1, new[] { tokenD }));
238
Assert.Throws<ArgumentNullException>(() => list.
InsertRange
(0, (IEnumerable<SyntaxToken>)null));
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\SyntaxReplacer.vb (2)
367
Return list.
InsertRange
(index, Me._newTokens)
369
Return list.
InsertRange
(index + 1, Me._newTokens)