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

Merged comptime reflection info into normal reflection data types

This commit is contained in:
Brian Fiete 2022-02-12 08:05:47 -05:00
parent b0c6dd7e43
commit e7f0b21cf6
20 changed files with 432 additions and 453 deletions

View file

@ -508,12 +508,12 @@ namespace System
interface IOnFieldInit
{
void OnFieldInit(ComptimeFieldInfo type, Self* prev) mut;
void OnFieldInit(FieldInfo type, Self* prev) mut;
}
interface IOnMethodInit
{
void OnMethodInit(ComptimeMethodInfo type, Self* prev) mut;
void OnMethodInit(MethodInfo type, Self* prev) mut;
}
interface IComptimeTypeApply

View file

@ -328,17 +328,17 @@ namespace System.Reflection
}
}
struct ComptimeMethodInfo
[CRepr, AlwaysInclude]
public struct MethodInfo
{
public int64 mNativeMethodInstance;
}
[Union]
struct Data
{
public TypeInstance.MethodData* mMethodData;
public int64 mComptimeMethodInstance;
}
struct ComptimeFieldInfo
{
int64 mNativeFieldInstance;
TypeId mOwner;
TypeId mTypeId;
int32 mFieldIdx;
FieldFlags mFlags;
TypeInstance mTypeInstance;
Data mData;
}
}