Table of Contents

Method GetCodeFixesAsync

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

GetCodeFixesAsync(ISyntaxError, bool, CancellationToken)

When implemented by a class, gets code fixes for a given syntax error in async mode.

Task<IList<ICodeFix>> GetCodeFixesAsync(ISyntaxError error, bool allDocuments = false, CancellationToken cancellationToken = default)

Parameters

error ISyntaxError

Specifies syntax error.

allDocuments bool

Specifies if all documents in the solution need to be processed.

cancellationToken CancellationToken

Cancellation token

Returns

Task<IList<ICodeFix>>

List of code fixes for a given error if succeed; otherwise null.