Method GetCodeRefactorsAsync
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v9.dll
GetCodeRefactorsAsync(Point, Point, bool, CancellationToken)
Retrieves all applicable refactors at given range in async mode.
public virtual Task<IList<ICodeRefactor>> GetCodeRefactorsAsync(Point startPos, Point endPos, bool allDocuments, CancellationToken cancellationToken)
Parameters
startPos
PointStar position within the text.
endPos
PointEnd position within the text..
allDocuments
boolSpecifies all documents in the solution needs to be processed.
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IList<ICodeRefactor>>
Collection of available code refactors
GetCodeRefactorsAsync(Document, TextSpan, bool, CancellationToken)
protected virtual Task<IList<ICodeRefactor>> GetCodeRefactorsAsync(Document document, TextSpan textSpan, bool allDocuments, CancellationToken cancellationToken)
Parameters
document
DocumenttextSpan
TextSpanallDocuments
boolcancellationToken
CancellationToken