mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Hide internal generated methods from reflection, fix ctor/dtor names
This commit is contained in:
parent
70ab03529e
commit
078727c4a7
10 changed files with 73 additions and 15 deletions
|
@ -648,6 +648,15 @@ String BfMethodDef::ToString()
|
|||
return methodText;
|
||||
}
|
||||
|
||||
String BfMethodDef::GetReflectName()
|
||||
{
|
||||
if (mMethodType == BfMethodType_Ctor)
|
||||
return "this";
|
||||
if (mMethodType == BfMethodType_Dtor)
|
||||
return "~this";
|
||||
return mName;
|
||||
}
|
||||
|
||||
int BfMethodDef::GetExplicitParamCount()
|
||||
{
|
||||
for (int i = 0; i < (int)mParams.size(); i++)
|
||||
|
@ -675,6 +684,15 @@ void BfMethodDef::BuildParamNameMap()
|
|||
(*mParamNameMap)[mParams[i]->mName] = i - startIdx;
|
||||
}
|
||||
|
||||
bool BfMethodDef::CanReflect()
|
||||
{
|
||||
if (mMethodDeclaration != NULL)
|
||||
return true;
|
||||
if (mMethodType == BfMethodType_Ctor)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
void BfTypeDef::Reset()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue