RefactorAllContext.GetRefactorAllSpansAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the spans to refactor by document for the Scope for this refactor all occurrences fix. If no spans are specified, it indicates the entire document needs to be refactored.
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableDictionary<Microsoft.CodeAnalysis.Document,Microsoft.CodeAnalysis.Optional<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Text.TextSpan>>>> GetRefactorAllSpansAsync(System.Threading.CancellationToken cancellationToken);
member this.GetRefactorAllSpansAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableDictionary<Microsoft.CodeAnalysis.Document, Microsoft.CodeAnalysis.Optional<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Text.TextSpan>>>>
Public Function GetRefactorAllSpansAsync (cancellationToken As CancellationToken) As Task(Of ImmutableDictionary(Of Document, Optional(Of ImmutableArray(Of TextSpan))))
Parameters
- cancellationToken
- CancellationToken