1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Merge pull request #2172 from Fusioon/patch-2

Add IsMutating to MethodInfo
This commit is contained in:
Brian Fiete 2025-03-04 11:25:34 -08:00 committed by GitHub
commit d06f2c0e59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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