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:
parent
c2461c8554
commit
bf5c19269b
4 changed files with 45 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue