protected NullSelectionResult(OperationStatus status) : base(status) { }
public ErrorSelectionResult(OperationStatus status) : base(status.MakeFail()) { }
protected SelectionResult(OperationStatus status) { // Contract.ThrowIfNull(status); this.Status = status; }
public static bool Failed(this OperationStatus status) { return(status.Flag.Failed()); }
public static bool FailedWithNoBestEffortSuggestion(this OperationStatus status) { return(status.Flag.Failed() && !status.Flag.HasBestEffort()); }
public static bool Succeeded(this OperationStatus status) { return(status.Flag.Succeeded()); }
public FailedExtractMethodResult(OperationStatus status) : base(status.Flag, status.Reasons, null, default(SyntaxToken), default(SyntaxNode)) { }