Skip to content

Commit f88756e

Browse files
committed
Add means implicit use attributes
1 parent 455b368 commit f88756e

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/PatchManager.SassyPatching/Attributes/SassyConstantAttribute.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
namespace PatchManager.SassyPatching.Attributes;
1+
using JetBrains.Annotations;
2+
3+
namespace PatchManager.SassyPatching.Attributes;
24

35
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
6+
[MeansImplicitUse]
47
public class SassyConstantAttribute : Attribute
58
{
69
public string ConstantName;

src/PatchManager.SassyPatching/Attributes/SassyLibraryAttribute.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
namespace PatchManager.SassyPatching.Attributes;
1+
using JetBrains.Annotations;
2+
3+
namespace PatchManager.SassyPatching.Attributes;
24

35
/// <summary>
46
/// Represents a builtin (C#) library for the sassy patcher execution engine
57
/// </summary>
68
[AttributeUsage(AttributeTargets.Class)]
9+
[MeansImplicitUse]
710
public class SassyLibraryAttribute : Attribute
811
{
912
/// <summary>

src/PatchManager.SassyPatching/Attributes/SassyMethodAttribute.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
namespace PatchManager.SassyPatching.Attributes;
1+
using JetBrains.Annotations;
2+
3+
namespace PatchManager.SassyPatching.Attributes;
24

35
/// <summary>
46
/// Defines this as a method for sassy patcher, it can define any argument type it wants, and reflection will be used to convert them at runtime
57
/// Method overloading is not allowed
68
/// </summary>
79
[AttributeUsage(AttributeTargets.Method)]
10+
[MeansImplicitUse]
811
public class SassyMethodAttribute : Attribute
912
{
1013
/// <summary>

0 commit comments

Comments
 (0)