17 references to ReplaceRange
Microsoft.CodeAnalysis (1)
Syntax\SyntaxList`1.cs (1)
309return ReplaceRange(nodeInList, new[] { newNode });
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxReplacer.cs (1)
428return list.ReplaceRange((TNode)_originalNode, _newNodes.Cast<TNode>());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (2)
109currentBlock.Statements.ReplaceRange(usingStatement, expandedUsingStatements)), 112compilationUnit.Members.ReplaceRange((GlobalStatementSyntax)usingStatement.GetRequiredParent(), expandedUsingStatements.Select(GlobalStatement))),
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
308root.Members.ReplaceRange(namespaceDecl, members),
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (2)
109currentBlock.Statements.ReplaceRange(usingStatement, expandedUsingStatements)), 112compilationUnit.Members.ReplaceRange((GlobalStatementSyntax)usingStatement.GetRequiredParent(), expandedUsingStatements.Select(GlobalStatement))),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxListTests.cs (1)
225Assert.Throws<ArgumentException>(() => list.ReplaceRange(nodeD, new[] { nodeE }));
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxReplacer.vb (1)
328Return list.ReplaceRange(DirectCast(Me._originalNode, TNode), Me._replacementNodes.Cast(Of TNode))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (8)
Syntax\SyntaxListTests.vb (8)
107newList = list.ReplaceRange(elementA, {nodeD, nodeE}) 111newList = list.ReplaceRange(elementB, {nodeD, nodeE}) 115newList = list.ReplaceRange(elementC, {nodeD, nodeE}) 119newList = list.ReplaceRange(elementA, New SyntaxNode() {}) 123newList = list.ReplaceRange(elementB, New SyntaxNode() {}) 127newList = list.ReplaceRange(elementC, New SyntaxNode() {}) 139Assert.Throws(Of ArgumentException)(Function() list.ReplaceRange(nodeD, {nodeE})) 185Assert.Throws(Of ArgumentException)(Function() list.ReplaceRange(nodeD, {nodeE}))