Table of Contents

Method GetCodeFixesAsync

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

GetCodeFixesAsync(ISyntaxError, bool, CancellationToken)

When implemented by a class, retrieves all code fixes available for the given syntax error in async mode.

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

Parameters

error ISyntaxError

Syntax error or warning

allDocuments bool

Specifies all documents in the solution needs to be processed.

cancellationToken CancellationToken

Cancellation token

Returns

Task<IList<ICodeFix>>

Collection of available code fixes