21 references to InsertRange
Microsoft.CodeAnalysis (2)
Syntax\SyntaxTriviaList.cs (2)
273return InsertRange(this.Count, trivia); 288return InsertRange(index, new[] { trivia });
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxReplacer.cs (2)
516return list.InsertRange(index + 1, _newTrivia); 519return list.InsertRange(index, _newTrivia);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
432var newLeadingTrivia = firstToken.LeadingTrivia.InsertRange(0, fileHeader);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
432var newLeadingTrivia = firstToken.LeadingTrivia.InsertRange(0, fileHeader);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTriviaListTests.cs (11)
96newList = list.InsertRange(0, new[] { triviaD, triviaE }); 100newList = list.InsertRange(1, new[] { triviaD, triviaE }); 104newList = list.InsertRange(2, new[] { triviaD, triviaE }); 108newList = list.InsertRange(3, new[] { triviaD, triviaE }); 171Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { triviaD })); 172Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { triviaD })); 178Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxTrivia>)null)); 208newList = list.InsertRange(0, new[] { triviaD, triviaE }); 219Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { triviaD })); 220Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { triviaD })); 226Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxTrivia>)null));
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\SyntaxReplacer.vb (2)
395Return list.InsertRange(index, Me._newTrivia) 397Return list.InsertRange(index + 1, Me._newTrivia)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Wrapping\BinaryExpression\VisualBasicBinaryExpressionWrapper.vb (1)
25Return newLine.InsertRange(0, {SyntaxFactory.WhitespaceTrivia(" "), SyntaxFactory.LineContinuationTrivia("_")})
Wrapping\ChainedExpression\VisualBasicChainedExpressionWrapper.vb (1)
19Return newLine.InsertRange(0, {SyntaxFactory.WhitespaceTrivia(" "), SyntaxFactory.LineContinuationTrivia("_")})