mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Added static search lookup for mixins
This commit is contained in:
parent
501491d875
commit
7e59c7fb93
1 changed files with 16 additions and 0 deletions
|
@ -16332,6 +16332,22 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (methodMatcher.mBestMethodDef == NULL)
|
||||||
|
{
|
||||||
|
BfStaticSearch* staticSearch = mModule->GetStaticSearch();
|
||||||
|
if (staticSearch != NULL)
|
||||||
|
{
|
||||||
|
for (auto typeInst : staticSearch->mStaticTypes)
|
||||||
|
{
|
||||||
|
if (methodMatcher.CheckType(typeInst, BfTypedValue(), false))
|
||||||
|
{
|
||||||
|
if (methodMatcher.mBestMethodDef != NULL)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (methodMatcher.mBestMethodDef == NULL)
|
if (methodMatcher.mBestMethodDef == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue