-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make ValidateSymbolResult void returning (#1567)
* make ValidateSymbolResult void returning, clean up file existence validators * update API approvals
- Loading branch information
1 parent
ef7f2e8
commit d4cae87
Showing
11 changed files
with
103 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace System.CommandLine.Parsing | ||
{ | ||
/// <summary> | ||
/// A delegate used to validate symbol results during parsing. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the <see cref="SymbolResult"/>.</typeparam> | ||
/// <param name="symbolResult">The symbol result</param> | ||
/// <returns>An error message to indicate a validation error; otherwise, <c>null</c>.</returns> | ||
public delegate string? ValidateSymbolResult<in T>(T symbolResult) | ||
where T : SymbolResult; | ||
} | ||
namespace System.CommandLine.Parsing; | ||
|
||
/// <summary> | ||
/// A delegate used to validate symbol results during parsing. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the <see cref="SymbolResult"/>.</typeparam> | ||
/// <param name="symbolResult">The symbol result</param> | ||
/// <remarks>To display an error, set <see cref="SymbolResult.ErrorMessage"/>.</remarks> | ||
public delegate void ValidateSymbolResult<in T>(T symbolResult) | ||
where T : SymbolResult; |
Oops, something went wrong.