mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +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
|
@ -50,7 +50,7 @@ namespace System
|
|||
}
|
||||
|
||||
[Comptime]
|
||||
public void OnFieldInit(ComptimeFieldInfo fieldInfo, Self* prev) mut
|
||||
public void OnFieldInit(FieldInfo fieldInfo, Self* prev) mut
|
||||
{
|
||||
if (mBFieldType == null)
|
||||
mBFieldType = fieldInfo.FieldType;
|
||||
|
@ -149,7 +149,7 @@ namespace System
|
|||
str.Append("protected ");
|
||||
if (fieldInfo.IsStatic)
|
||||
str.Append("static ");
|
||||
bool wantsMut = fieldInfo.Owner.IsStruct && !fieldInfo.IsStatic;
|
||||
bool wantsMut = fieldInfo.DeclaringType.IsStruct && !fieldInfo.IsStatic;
|
||||
|
||||
void TypeStr(String str, Type t)
|
||||
{
|
||||
|
@ -235,7 +235,7 @@ namespace System
|
|||
|
||||
str.Append("}\n");
|
||||
|
||||
Compiler.EmitTypeBody(fieldInfo.Owner, str);
|
||||
Compiler.EmitTypeBody(fieldInfo.DeclaringType, str);
|
||||
|
||||
if (!isRev)
|
||||
mBitPos += bitCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue