WorkspaceExtensions.InsertNodesBeforeAsync(Document, SyntaxNode, IEnumerable<SyntaxNode>, CancellationToken) Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.Workspaces.Core.dll
Creates a new document with new nodes inserted before the specified node.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> InsertNodesBeforeAsync(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