mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Allowed more flexible attribute type lookup, supporting inner types
This commit is contained in:
parent
3509d659ea
commit
86d8f78761
5 changed files with 49 additions and 66 deletions
|
@ -5062,8 +5062,10 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
}
|
||||
|
||||
// Temporarily disable so we don't capture calls in params
|
||||
SetAndRestoreValue<BfFunctionBindResult*> prevBindResult(mFunctionBindResult, NULL);
|
||||
SetAndRestoreValue<bool> prevAllowVariableDeclarations(mModule->mCurMethodState->mCurScope->mAllowVariableDeclarations, false); // Don't allow variable declarations in arguments
|
||||
SetAndRestoreValue<BfFunctionBindResult*> prevBindResult(mFunctionBindResult, NULL);
|
||||
SetAndRestoreValue<bool> prevAllowVariableDeclarations;
|
||||
if (mModule->mCurMethodState != NULL)
|
||||
prevAllowVariableDeclarations.Init(mModule->mCurMethodState->mCurScope->mAllowVariableDeclarations, false);
|
||||
|
||||
BfMethodInstance* methodInstance = moduleMethodInstance.mMethodInstance;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue