mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Handled comptime reflection over NoDecl_AwaitingReference methods
This commit is contained in:
parent
35d82fd599
commit
6d014575f1
1 changed files with 8 additions and 0 deletions
|
@ -8185,6 +8185,14 @@ CeTypeInfo* CeMachine::GetTypeInfo(BfType* type)
|
|||
ceTypeInfo->mRevision = typeInstance->mRevision;
|
||||
for (auto& methodGroup : typeInstance->mMethodInstanceGroups)
|
||||
{
|
||||
if (methodGroup.mOnDemandKind == BfMethodOnDemandKind_NoDecl_AwaitingReference)
|
||||
{
|
||||
auto methodDef = typeInstance->mTypeDef->mMethods[methodGroup.mMethodIdx];
|
||||
auto flags = ((methodDef->mGenericParams.size() != 0) || (typeInstance->IsUnspecializedType())) ? BfGetMethodInstanceFlag_UnspecializedPass : BfGetMethodInstanceFlag_None;
|
||||
flags = (BfGetMethodInstanceFlags)(flags | BfGetMethodInstanceFlag_MethodInstanceOnly);
|
||||
mCeModule->GetMethodInstance(typeInstance, methodDef, BfTypeVector(), flags);
|
||||
}
|
||||
|
||||
if (methodGroup.mDefault != NULL)
|
||||
{
|
||||
mMethodInstanceSet.Add(methodGroup.mDefault);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue