-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fixed CS1591 warnings about missing XML comments #68
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Supernova.Enum.Generators; | ||
|
||
public static class EnumGeneratorAttributeHelper | ||
{ | ||
public const string Name = "EnumGenerator"; | ||
|
||
public const string Content = @"// <auto-generated /> | ||
|
||
using System; | ||
using System.CodeDom.Compiler; | ||
|
||
namespace " + SourceGeneratorHelper.NameSpace + @" | ||
{ | ||
[AttributeUsage(AttributeTargets.Enum)] | ||
[GeneratedCodeAttribute(""Supernova.Enum.Generators"", null)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does adding Generated Code Attribute make a special change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a support attribute for tools that use Reflection for analysis. Does the same thing as the auto-generated tag for tools that not uses a Reflection approach. |
||
public sealed class " + Name + @"Attribute : Attribute | ||
{ | ||
} | ||
} | ||
"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a special reason that you separated these features from the SourceGeneratorHelper class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This separation follows the single responsibility principle and helps keep the project organized. Based on the file name, it is now clear what this file does without having to open it.