Skip to main content

WorkspaceExtensions.RemoveNodeAsync(Document, SyntaxNode, SyntaxRemoveOptions, CancellationToken) Method

Containing Type: WorkspaceExtensions

Assembly: Roslynator.Workspaces.Core.dll

Creates a new document with the specified node removed.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> RemoveNodeAsync(this Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SyntaxRemoveOptions options, System.Threading.CancellationToken cancellationToken = default)

Parameters

document Document

node SyntaxNode

options SyntaxRemoveOptions

cancellationToken CancellationToken

Returns

Task<Document>