11 references to ReplaceRange
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTriviaList.cs (1)
402return ReplaceRange(triviaInList, new[] { newTrivia });
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxReplacer.cs (1)
513return list.ReplaceRange(_originalTrivia, _newTrivia);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Syntax\SyntaxTriviaListTests.cs (8)
144newList = list.ReplaceRange(elementA, new[] { triviaD, triviaE }); 148newList = list.ReplaceRange(elementB, new[] { triviaD, triviaE }); 152newList = list.ReplaceRange(elementC, new[] { triviaD, triviaE }); 156newList = list.ReplaceRange(elementA, new SyntaxTrivia[] { }); 160newList = list.ReplaceRange(elementB, new SyntaxTrivia[] { }); 164newList = list.ReplaceRange(elementC, new SyntaxTrivia[] { }); 179Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxTrivia>)null)); 222Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(triviaD, new[] { triviaE }));
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxReplacer.vb (1)
393Return list.ReplaceRange(Me._originalTrivia, Me._newTrivia)