Table of Contents

Method HasCodeRefactorsAsync

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

HasCodeRefactorsAsync(Point, Point, bool, CancellationToken)

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

public virtual Task<bool> HasCodeRefactorsAsync(Point startPos, Point endPos, bool allDocuments = false, CancellationToken cancellationToken = default)

Parameters

startPos Point

Start position within the text.

endPos Point

End position within the text.

allDocuments bool

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

cancellationToken CancellationToken

Cancellation token

Returns

Task<bool>

True if code fixes are available, otherwise false.