3 instantiations of InitialSelectionInfo
Microsoft.CodeAnalysis.Features (3)
ExtractMethod\SelectionInfo.cs (1)
52
=>
new
(new(succeeded: false, reason));
ExtractMethod\SelectionValidator.cs (2)
121
return
new
(OperationStatus.SucceededStatus, firstTokenInOriginalSpan, lastTokenInOriginalSpan, firstStatement: null, lastStatement: null, selectionInExpression: true);
127
return
new
(OperationStatus.SucceededStatus, firstTokenInOriginalSpan, lastTokenInOriginalSpan, firstStatement, lastStatement, selectionInExpression: false);
8 references to InitialSelectionInfo
Microsoft.CodeAnalysis.Features (8)
ExtractMethod\SelectionInfo.cs (2)
51
public static
InitialSelectionInfo
Failure(string reason)
59
/// cref="
InitialSelectionInfo
"/> to ensure different phases of the extract method process do not accidentally use
ExtractMethod\SelectionValidator.cs (6)
32
protected abstract
InitialSelectionInfo
GetInitialSelectionInfo(CancellationToken cancellationToken);
34
protected abstract FinalSelectionInfo UpdateSelectionInfo(
InitialSelectionInfo
selectionInfo, CancellationToken cancellationToken);
42
var
initialSelectionInfo = this.GetInitialSelectionInfo(cancellationToken);
92
InitialSelectionInfo
initialSelectionInfo, FinalSelectionInfo finalSelectionInfo)
114
protected
InitialSelectionInfo
CreateInitialSelectionInfo(
125
return
InitialSelectionInfo
.Failure(FeaturesResources.No_valid_statement_range_to_extract);