3 instantiations of InitialSelectionInfo
Microsoft.CodeAnalysis.Features (3)
ExtractMethod\SelectionInfo.cs (1)
52=> new(new(succeeded: false, reason));
ExtractMethod\SelectionValidator.cs (2)
121return new(OperationStatus.SucceededStatus, firstTokenInOriginalSpan, lastTokenInOriginalSpan, firstStatement: null, lastStatement: null, selectionInExpression: true); 127return new(OperationStatus.SucceededStatus, firstTokenInOriginalSpan, lastTokenInOriginalSpan, firstStatement, lastStatement, selectionInExpression: false);
8 references to InitialSelectionInfo
Microsoft.CodeAnalysis.Features (8)
ExtractMethod\SelectionInfo.cs (2)
51public 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)
32protected abstract InitialSelectionInfo GetInitialSelectionInfo(CancellationToken cancellationToken); 34protected abstract FinalSelectionInfo UpdateSelectionInfo(InitialSelectionInfo selectionInfo, CancellationToken cancellationToken); 42var initialSelectionInfo = this.GetInitialSelectionInfo(cancellationToken); 92InitialSelectionInfo initialSelectionInfo, FinalSelectionInfo finalSelectionInfo) 114protected InitialSelectionInfo CreateInitialSelectionInfo( 125return InitialSelectionInfo.Failure(FeaturesResources.No_valid_statement_range_to_extract);