Skip to main content

StatementListInfo.ReplaceNode(SyntaxNode, SyntaxNode) Method

Containing Type: StatementListInfo

Assembly: Roslynator.CSharp.dll

Creates a new StatementListInfo with the specified old node replaced with a new node.

public Roslynator.CSharp.Syntax.StatementListInfo ReplaceNode(Microsoft.CodeAnalysis.SyntaxNode oldNode, Microsoft.CodeAnalysis.SyntaxNode newNode)

Parameters

oldNode SyntaxNode

newNode SyntaxNode

Returns

StatementListInfo