1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-05 15:56:00 +02:00

Merge pull request #1957 from zerkawei/mixin-flag

Add Mixin methog flag
This commit is contained in:
Brian Fiete 2024-04-27 08:29:42 -04:00 committed by GitHub
commit 3f4988cbd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 0 deletions

View file

@ -56,6 +56,9 @@ namespace System.Reflection
public bool CanReflect => Compiler.IsComptime ?
Type.[Friend]Comptime_Method_GetInfo(mData.mComptimeMethodInstance).mComptimeMethodFlags.HasFlag(.NoReflect) :
mData.mMethodData.[Friend]mFlags.HasFlag(.SpecialName);
public bool IsMixin => Compiler.IsComptime ?
Type.[Friend]Comptime_Method_GetInfo(mData.mComptimeMethodInstance).mMethodFlags.HasFlag(.Mixin) :
mData.mMethodData.[Friend]mFlags.HasFlag(.Mixin);
public StringView Name => Compiler.IsComptime ?
Type.[Friend]Comptime_Method_GetName(mData.mComptimeMethodInstance) :

View file

@ -1533,6 +1533,7 @@ namespace System.Reflection
Virtual = 0x0040, // Method virtual.
HideBySig = 0x0080, // Method hides by name+sig, else just by name.
ReadOnly = 0x0100,
Mixin = 0x0200,
Abstract = 0x0400, // Method does not provide an implementation.
SpecialName = 0x0800, // Method is special. Name describes how.
StdCall = 0x1000,