11 references to ReplaceRange
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CSharp (1)
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)