-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from thedmi/fix/clarify-interface-generation
Fix: clarify interface generation
- Loading branch information
Showing
7 changed files
with
61 additions
and
12 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
19 changes: 19 additions & 0 deletions
19
sources/Capsule.Core/Attribution/CapsuleInterfaceGeneration.cs
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Capsule.Attribution; | ||
|
||
public enum CapsuleInterfaceGeneration | ||
{ | ||
/// <summary> | ||
/// Do not generate Capsule interface if there is a single candidate interface present. Generate otherwise. | ||
/// </summary> | ||
Auto, | ||
|
||
/// <summary> | ||
/// Do not generate Capsule interface. | ||
/// </summary> | ||
Disable, | ||
|
||
/// <summary> | ||
/// Generate Capsule interface. | ||
/// </summary> | ||
Enable | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Capsule.Generator; | ||
|
||
internal enum InterfaceGeneration | ||
{ | ||
// Enum int values must match those in CapsuleInterfaceGeneration. | ||
|
||
Auto, | ||
Disable, | ||
Enable | ||
} |
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