1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Allow generic conversion operators

This commit is contained in:
Brian Fiete 2022-01-17 17:10:37 -05:00
parent c2461c8554
commit bf5c19269b
4 changed files with 45 additions and 21 deletions

View file

@ -888,13 +888,22 @@ public:
class BfOperatorDef : public BfMethodDef
{
public:
BfOperatorDeclaration* mOperatorDeclaration;
BfOperatorDeclaration* mOperatorDeclaration;
public:
BfOperatorDef()
{
mOperatorDeclaration = NULL;
}
bool IsExplicit()
{
if (mOperatorDeclaration->mExplicitToken != NULL)
return mOperatorDeclaration->mExplicitToken->mToken == BfToken_Explicit;
if (mOperatorDeclaration->mOperatorToken != NULL)
return mOperatorDeclaration->mOperatorToken->mToken == BfToken_Explicit;
return false;
}
};
struct BfTypeDefLookupContext