mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Add IsStatic and IsAbstract to System.Type
This commit is contained in:
parent
e8c763eb20
commit
fdc598b4a2
3 changed files with 28 additions and 1 deletions
|
@ -5997,6 +5997,11 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
|
|||
if ((type->mDefineState != BfTypeDefineState_CETypeInit) && (type->WantsGCMarking()))
|
||||
typeFlags |= BfTypeFlags_WantsMarking;
|
||||
|
||||
if ((typeInstance != NULL) && (typeInstance->mTypeDef->mIsStatic))
|
||||
typeFlags |= BfTypeFlags_Static;
|
||||
if ((typeInstance != NULL) && (typeInstance->mTypeDef->mIsAbstract))
|
||||
typeFlags |= BfTypeFlags_Abstract;
|
||||
|
||||
int virtSlotIdx = -1;
|
||||
if ((typeInstance != NULL) && (typeInstance->mSlotNum >= 0))
|
||||
virtSlotIdx = typeInstance->mSlotNum + 1 + mCompiler->GetDynCastVDataCount();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue