11 references to ReplaceRange
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxReplacer.cs (1)
404return list.ReplaceRange((TNode)_originalNode, _newNodes.Cast<TNode>());
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxReplacer.vb (1)
311Return list.ReplaceRange(DirectCast(Me._originalNode, TNode), Me._replacementNodes.Cast(Of TNode))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Syntax\SeparatedSyntaxListTests.vb (9)
113newList = list.ReplaceRange(elementA, {nodeD, nodeE}) 117newList = list.ReplaceRange(elementB, {nodeD, nodeE}) 121newList = list.ReplaceRange(elementC, {nodeD, nodeE}) 125newList = list.ReplaceRange(elementA, New SyntaxNode() {}) 129newList = list.ReplaceRange(elementB, New SyntaxNode() {}) 133newList = list.ReplaceRange(elementC, New SyntaxNode() {}) 145Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.ReplaceRange(nodeD, {nodeE})) 150Assert.Throws(Of ArgumentNullException)(Function() list.ReplaceRange(elementA, DirectCast(Nothing, IEnumerable(Of SyntaxNode)))) 191Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.ReplaceRange(nodeD, {nodeE}))