14 references to ReplaceNode
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxNodeTests.cs (10)
2204
var newNode = invocation.
ReplaceNode
(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD });
2208
newNode = invocation.
ReplaceNode
(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD });
2212
newNode = invocation.
ReplaceNode
(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { });
2216
newNode = invocation.
ReplaceNode
(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { });
2230
Assert.Throws<InvalidOperationException>(() => ifstatement.
ReplaceNode
(then, new[] { stat1, stat2 }));
2233
Assert.Throws<InvalidOperationException>(() => ifstatement.
ReplaceNode
(then, new StatementSyntax[] { }));
2284
var newBlock = block.
ReplaceNode
(block.Statements[0], new[] { stmt1, stmt2 });
2288
newBlock = block.
ReplaceNode
(block.Statements[1], new[] { stmt1, stmt2 });
2292
newBlock = block.
ReplaceNode
(block.Statements[0], new SyntaxNode[] { });
2296
newBlock = block.
ReplaceNode
(block.Statements[1], new SyntaxNode[] { });
Syntax\SyntaxRewriterTests.cs (1)
383
var newRoot = root.
ReplaceNode
(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD });
Microsoft.CodeAnalysis.Features (2)
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
81
return root.
ReplaceNode
(Source, Destinations);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
250
var newRoot = root.
ReplaceNode
(
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1441
return root.
ReplaceNode
(node, newDeclarations);