mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed autocomplete when previous argument was an indexer
This commit is contained in:
parent
bc717c7dcb
commit
2505a6d6eb
1 changed files with 6 additions and 4 deletions
|
@ -15218,15 +15218,17 @@ void BfExprEvaluator::Visit(BfIndexerExpression* indexerExpr)
|
||||||
wasCapturingMethodMatchInfo = autoComplete->mIsCapturingMethodMatchInfo;
|
wasCapturingMethodMatchInfo = autoComplete->mIsCapturingMethodMatchInfo;
|
||||||
autoComplete->mIsCapturingMethodMatchInfo = false;
|
autoComplete->mIsCapturingMethodMatchInfo = false;
|
||||||
}
|
}
|
||||||
|
defer
|
||||||
|
{
|
||||||
|
if (autoComplete != NULL)
|
||||||
|
autoComplete->mIsCapturingMethodMatchInfo = wasCapturingMethodMatchInfo;
|
||||||
|
};
|
||||||
|
|
||||||
if ((!isFailurePass) && (!methodMatcher.WantsCheckMethod(protectionCheckFlags, startCheckTypeInst, curCheckType, checkMethod)))
|
if ((!isFailurePass) && (!methodMatcher.WantsCheckMethod(protectionCheckFlags, startCheckTypeInst, curCheckType, checkMethod)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
methodMatcher.mCheckedKind = checkedKind;
|
methodMatcher.mCheckedKind = checkedKind;
|
||||||
methodMatcher.CheckMethod(curCheckType, checkMethod, false);
|
methodMatcher.CheckMethod(curCheckType, checkMethod, false);
|
||||||
|
|
||||||
if (autoComplete != NULL)
|
|
||||||
autoComplete->mIsCapturingMethodMatchInfo = wasCapturingMethodMatchInfo;
|
|
||||||
|
|
||||||
if ((methodMatcher.mBestMethodDef == checkMethod) ||
|
if ((methodMatcher.mBestMethodDef == checkMethod) ||
|
||||||
((foundProp == NULL) && (methodMatcher.mBackupMethodDef == checkMethod)))
|
((foundProp == NULL) && (methodMatcher.mBackupMethodDef == checkMethod)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue