-
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.
- Loading branch information
Showing
8 changed files
with
54 additions
and
35 deletions.
There are no files selected for viewing
28 changes: 16 additions & 12 deletions
28
UnityAttributes/GenConstructor/GenConstructorGenerator.Attribute.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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
using UnityAttributes.Common; | ||
|
||
namespace UnityAttributes.GenConstructor; | ||
|
||
public partial class GenConstructorGenerator { | ||
public const string AttributeName = "GenConstructorAttribute"; | ||
readonly string attributeText = @$"{Const.AUTO_GENERATED_TEXT} | ||
public partial class GenConstructorGenerator | ||
{ | ||
public const string ATTRIBUTE_NAME = "GenConstructorAttribute"; | ||
public const string ATTRIBUTE_TEXT = | ||
$$""" | ||
/// <auto-generated /> | ||
namespace UnityAttributes | ||
{ | ||
[global::System.AttributeUsage(global::System.AttributeTargets.Class, Inherited = true, AllowMultiple = false)] | ||
internal sealed class {{ATTRIBUTE_NAME}} : global::System.Attribute | ||
{ | ||
public {{ATTRIBUTE_NAME}}() { } | ||
} | ||
} | ||
{generatedCodeAttribute} | ||
[global::System.AttributeUsage(global::System.AttributeTargets.Class, Inherited = true, AllowMultiple = false)] | ||
internal sealed class {AttributeName} : global::System.Attribute | ||
{{ | ||
public {AttributeName}() {{ }} | ||
}} | ||
"; | ||
"""; | ||
} |
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