Skip to main content

WorkspaceExtensions.RemoveNodesAsync(Document, IEnumerable<SyntaxNode>, SyntaxRemoveOptions, CancellationToken) Method

Containing Type: WorkspaceExtensions

Assembly: Roslynator.Workspaces.Core.dll

Creates a new document with the specified nodes removed.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> RemoveNodesAsync(this Microsoft.CodeAnalysis.Document document, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> nodes, Microsoft.CodeAnalysis.SyntaxRemoveOptions options, System.Threading.CancellationToken cancellationToken = default)

Parameters

document Document

nodes IEnumerable<SyntaxNode>

options SyntaxRemoveOptions

cancellationToken CancellationToken

Returns

Task<Document>