Table of Contents

Method GetCodeFixesAsync

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

GetCodeFixesAsync(ISyntaxError, bool, CancellationToken)

Retrieves all code fixes available for the given syntax error in async mode.

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

Parameters

error ISyntaxError

Syntaxe error or warning

allDocuments bool

Specifies if search needs to process all documents in the solution

cancellationToken CancellationToken

Cancellation token

Returns

Task<IList<ICodeFix>>

Collection of available code fixes.