-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate enum from file instead of string
- Loading branch information
1 parent
e3de5d6
commit 33ba4d0
Showing
4 changed files
with
43 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
namespace Zomp.SyncMethodGenerator; | ||
|
||
/// <summary> | ||
/// All types that an IAsyncEnumerable can be converted into. | ||
/// </summary> | ||
[Flags] | ||
public enum CollectionTypes | ||
namespace Zomp.SyncMethodGenerator | ||
{ | ||
/// <summary> | ||
/// Type for System.Collections.Generic.IEnumerable . | ||
/// All types that an IAsyncEnumerable can be converted into. | ||
/// </summary> | ||
IEnumerable = 1, | ||
[Flags] | ||
public enum CollectionTypes | ||
{ | ||
/// <summary> | ||
/// Type for System.Collections.Generic.IEnumerable . | ||
/// </summary> | ||
IEnumerable = 1, | ||
|
||
/// <summary> | ||
/// Type for System.Collections.Generic.IList . | ||
/// </summary> | ||
IList = 2, | ||
/// <summary> | ||
/// Type for System.Collections.Generic.IList . | ||
/// </summary> | ||
IList = 2, | ||
|
||
/// <summary> | ||
/// Type for System.ReadOnlySpan . | ||
/// </summary> | ||
ReadOnlySpan = 4, | ||
/// <summary> | ||
/// Type for System.ReadOnlySpan . | ||
/// </summary> | ||
ReadOnlySpan = 4, | ||
|
||
/// <summary> | ||
/// Type for System.Span . | ||
/// </summary> | ||
Span = 8, | ||
/// <summary> | ||
/// Type for System.Span . | ||
/// </summary> | ||
Span = 8, | ||
} | ||
} |
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