mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed invalid clearing of mIsCapturingMethodMatchInfo with inner call
This commit is contained in:
parent
e4510fdb3a
commit
3fd7e31119
1 changed files with 7 additions and 0 deletions
|
@ -6607,12 +6607,19 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
|
||||
AddCallDependencies(methodInstance);
|
||||
|
||||
bool wasCapturingMatchInfo = false;
|
||||
auto autoComplete = GetAutoComplete();
|
||||
if (autoComplete != NULL)
|
||||
{
|
||||
// Set to false to make sure we don't capture method match info from 'params' array creation
|
||||
wasCapturingMatchInfo = autoComplete->mIsCapturingMethodMatchInfo;
|
||||
autoComplete->mIsCapturingMethodMatchInfo = false;
|
||||
}
|
||||
defer(
|
||||
{
|
||||
if (autoComplete != NULL)
|
||||
autoComplete->mIsCapturingMethodMatchInfo = wasCapturingMatchInfo;
|
||||
});
|
||||
|
||||
BfScopeData* boxScopeData = mDeferScopeAlloc;
|
||||
if ((boxScopeData == NULL) && (mModule->mCurMethodState != NULL))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue