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