Skip to main content

WorkspaceExtensions.RemoveCommentsAsync Method

Containing Type: WorkspaceExtensions

Assembly: Roslynator.CSharp.Workspaces.dll

Overloads

MethodSummary
RemoveCommentsAsync(Document, CommentFilter, CancellationToken)Creates a new document with comments of the specified kind removed.
RemoveCommentsAsync(Document, TextSpan, CommentFilter, CancellationToken)Creates a new document with comments of the specified kind removed.

RemoveCommentsAsync(Document, CommentFilter, CancellationToken)

Creates a new document with comments of the specified kind removed.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> RemoveCommentsAsync(this Microsoft.CodeAnalysis.Document document, Roslynator.CSharp.CommentFilter comments, System.Threading.CancellationToken cancellationToken = default)

Parameters

document Document

comments CommentFilter

cancellationToken CancellationToken

Returns

Task<Document>

RemoveCommentsAsync(Document, TextSpan, CommentFilter, CancellationToken)

Creates a new document with comments of the specified kind removed.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> RemoveCommentsAsync(this Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Roslynator.CSharp.CommentFilter comments, System.Threading.CancellationToken cancellationToken = default)

Parameters

document Document

span TextSpan

comments CommentFilter

cancellationToken CancellationToken

Returns

Task<Document>