Share via


RefactorAllContext.GetRefactorAllSpansAsync(CancellationToken) Method

Definition

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

Returns

Applies to