1
0
Fork 0
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:
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

@ -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;