mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Extension classifier fix
This commit is contained in:
parent
f008a98105
commit
95c876570f
3 changed files with 15 additions and 1 deletions
|
@ -47,6 +47,16 @@ void BfSourceClassifier::SetElementType(BfAstNode* node, BfSourceElementType ele
|
|||
}
|
||||
}
|
||||
|
||||
void BfSourceClassifier::SetElementType(BfAstNode * node, BfTypeCode typeCode)
|
||||
{
|
||||
BfSourceElementType elemType = BfSourceElementType_Type;
|
||||
if (typeCode == BfTypeCode_Interface)
|
||||
elemType = BfSourceElementType_Interface;
|
||||
else if (typeCode == BfTypeCode_Object)
|
||||
elemType = BfSourceElementType_RefType;
|
||||
SetElementType(node, elemType);
|
||||
}
|
||||
|
||||
void BfSourceClassifier::SetHighestElementType(int startPos, int endPos, BfSourceElementType elementType)
|
||||
{
|
||||
if (!mEnabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue