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:
parent
b0c6dd7e43
commit
e7f0b21cf6
20 changed files with 432 additions and 453 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue