mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed [Reflect(.DefaultConstructor)] and [Reflect(.Constructors)]
This commit is contained in:
parent
961e71c62a
commit
c4b3482135
1 changed files with 8 additions and 0 deletions
|
@ -6578,6 +6578,14 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
|
|||
if ((methodDef->mIsStatic) && ((methodReflectKind & BfReflectKind_StaticMethods) != 0))
|
||||
includeMethod = true;
|
||||
|
||||
if (methodDef->mMethodType == BfMethodType_Ctor)
|
||||
{
|
||||
if ((methodReflectKind & BfReflectKind_Constructors) != 0)
|
||||
includeMethod = true;
|
||||
if ((methodDef->mParams.IsEmpty()) && ((methodReflectKind & BfReflectKind_DefaultConstructor) != 0))
|
||||
includeMethod = true;
|
||||
}
|
||||
|
||||
if ((!includeMethod) && (typeOptions != NULL))
|
||||
includeMethod = ApplyTypeOptionMethodFilters(includeMethod, methodDef, typeOptions);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue