Table of Contents

Method HasCodeFixesAsync

Namespace
Alternet.Syntax.Parsers.Roslyn.CodeCompletion
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

HasCodeFixesAsync(ISyntaxError, bool, CancellationToken)

Determines if any code fixes are available for the given syntax error in async mode.

public virtual Task<bool> HasCodeFixesAsync(ISyntaxError error, bool allDocuments, CancellationToken cancellationToken)

Parameters

error ISyntaxError

Syntax error or warning

allDocuments bool

Specifies if search needs to process all documents in the solution

cancellationToken CancellationToken

Cancellation token

Returns

Task<bool>

True if there's any code fix for the given error; otherwise false.

HasCodeFixesAsync(Document, ISyntaxError, bool, CancellationToken)

protected virtual Task<bool> HasCodeFixesAsync(Document document, ISyntaxError error, bool allDocuments, CancellationToken cancellationToken)

Parameters

document Document
error ISyntaxError
allDocuments bool
cancellationToken CancellationToken

Returns

Task<bool>