Method GetCodeFixesAsync
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.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, CancellationToken cancellationToken)
Parameters
error
ISyntaxErrorSyntax error or warning
allDocuments
boolSpecifies if search needs to process all documents in the solution
cancellationToken
CancellationTokenCancellation token
Returns
GetCodeFixesAsync(Document, ISyntaxError, bool, CancellationToken)
protected virtual Task<IList<ICodeFix>> GetCodeFixesAsync(Document document, ISyntaxError error, bool allDocuments, CancellationToken cancellationToken)
Parameters
document
Documenterror
ISyntaxErrorallDocuments
boolcancellationToken
CancellationToken