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