1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +02:00

Reworked functions with explicit 'this'

This commit is contained in:
Brian Fiete 2020-09-11 10:33:16 -07:00
parent 9fde8a3c89
commit 3627f8c40f
15 changed files with 556 additions and 199 deletions

View file

@ -416,15 +416,15 @@ class BfDelegateInfo
{
public:
Array<BfAstNode*> mDirectAllocNodes;
BfType* mReturnType;
BfType* mFunctionThisType;
BfType* mReturnType;
Array<BfType*> mParams;
bool mHasExplicitThis;
public:
BfDelegateInfo()
{
mReturnType = NULL;
mFunctionThisType = NULL;
mHasExplicitThis = false;
}
~BfDelegateInfo()
@ -870,6 +870,8 @@ public:
bool IsSpecializedByAutoCompleteMethod();
bool HasExternConstraints();
bool HasThis();
BfType* GetThisType();
int GetThisIdx();
bool HasExplicitThis();
bool HasParamsArray();
int GetStructRetIdx(bool forceStatic = false);