WorkspaceExtensions.InsertNodeAfterAsync(Document, SyntaxNode, SyntaxNode, CancellationToken) Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.Workspaces.Core.dll
Creates a new document with a new node inserted after the specified node.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> InsertNodeAfterAsync(this Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxNode nodeInList, Microsoft.CodeAnalysis.SyntaxNode newNode, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
nodeInList SyntaxNode
newNode SyntaxNode
cancellationToken CancellationToken