1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-29 21:05:59 +02:00

Added [IgnoreErrors] block attribute

This commit is contained in:
Brian Fiete 2020-08-16 08:33:51 -07:00
parent 65d960a6e6
commit 99419097c5
16 changed files with 307 additions and 79 deletions

View file

@ -28,11 +28,12 @@ namespace System
Alloc = 0x40000,
Delete = 0x80000,
Alias = 0x100000,
Block = 0x200000,
All = Assembly | Module | Class | Struct | Enum | Constructor |
Method | Property | Field | StaticField | Interface | Parameter |
Delegate | Function | ReturnValue | GenericParameter | Invocation | MemberAccess |
Alloc | Delete | Alias,
Alloc | Delete | Alias | Block,
}
public enum ReflectKind
@ -137,6 +138,14 @@ namespace System
}
[AttributeUsage(.Block)]
public struct IgnoreErrorsAttribute : Attribute
{
public this(bool stopOnErrors = false)
{
}
}
[AttributeUsage(.Method | .Class | .Struct | .Enum)]
public struct OptimizeAttribute : Attribute
{