mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Function reflection fix
This commit is contained in:
parent
504a7dca82
commit
0fc118c13c
1 changed files with 3 additions and 3 deletions
|
@ -4675,6 +4675,9 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
typeInstance->mInstSize = std::max(0, typeInstance->mInstSize);
|
||||
typeInstance->mInstAlign = std::max(0, typeInstance->mInstAlign);
|
||||
|
||||
if (typeInstance->IsFunction())
|
||||
typeInstance->mAlwaysIncludeFlags = (BfAlwaysIncludeFlags)(typeInstance->mAlwaysIncludeFlags | BfAlwaysIncludeFlag_IncludeAllMethods);
|
||||
|
||||
ProcessCustomAttributeData();
|
||||
int packing = 0;
|
||||
bool isUnion = false;
|
||||
|
@ -6537,9 +6540,6 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
|||
if (typeInstance->IncludeAllMethods())
|
||||
implRequired = true;
|
||||
|
||||
if ((typeInstance->IsDelegateOrFunction()) && (methodDef->mName == "Invoke"))
|
||||
implRequired = true;
|
||||
|
||||
// "AssumeInstantiated" also forces default ctor
|
||||
if (((typeInstance->mAlwaysIncludeFlags & BfAlwaysIncludeFlag_AssumeInstantiated) != 0) &&
|
||||
(methodDef->IsDefaultCtor()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue