1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 06:44:10 +02:00

Added attribute fixes

This commit is contained in:
Brian Fiete 2020-04-29 10:04:54 -07:00
parent c16dd2ec7b
commit 7acc63a12a

View file

@ -27,11 +27,12 @@ namespace System
MemberAccess = 0x20000, MemberAccess = 0x20000,
Alloc = 0x40000, Alloc = 0x40000,
Delete = 0x80000, Delete = 0x80000,
Alias = 0x100000,
All = Assembly | Module | Class | Struct | Enum | Constructor | All = Assembly | Module | Class | Struct | Enum | Constructor |
Method | Property | Field | StaticField | Interface | Parameter | Method | Property | Field | StaticField | Interface | Parameter |
Delegate | Function | ReturnValue | GenericParameter | Invocation | MemberAccess | Delegate | Function | ReturnValue | GenericParameter | Invocation | MemberAccess |
Alloc | Delete, Alloc | Delete | Alias,
} }
public enum ReflectKind public enum ReflectKind
@ -344,7 +345,7 @@ namespace System
{ {
} }
[AttributeUsage(.Method | .Constructor)] [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
public struct ObsoleteAttribute : Attribute public struct ObsoleteAttribute : Attribute
{ {
public this(bool isError) public this(bool isError)
@ -352,7 +353,7 @@ namespace System
} }
public this(String message, bool isError) public this(String error, bool isError)
{ {
} }
@ -364,7 +365,7 @@ namespace System
} }
[AttributeUsage(.Method | .Constructor)] [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
public struct ErrorAttribute : Attribute public struct ErrorAttribute : Attribute
{ {
public this(String error) public this(String error)
@ -373,7 +374,7 @@ namespace System
} }
} }
[AttributeUsage(.Method | .Constructor)] [AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
public struct WarnAttribute : Attribute public struct WarnAttribute : Attribute
{ {
public this(String error) public this(String error)