mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Added '->' operator, static indexer fix, RefCounted<T>
This commit is contained in:
parent
dd7986aaa9
commit
abd511a93d
14 changed files with 302 additions and 20 deletions
|
@ -1857,6 +1857,14 @@ bool BfAutoComplete::CheckMemberReference(BfAstNode* target, BfAstNode* dotToken
|
|||
|
||||
bool isStatic = false;
|
||||
BfTypedValue targetValue = LookupTypeRefOrIdentifier(target, &isStatic, (BfEvalExprFlags)(BfEvalExprFlags_IgnoreNullConditional | BfEvalExprFlags_NoCast), expectingType);
|
||||
if ((targetValue) && (dotToken->mToken == BfToken_Arrow))
|
||||
{
|
||||
SetAndRestoreValue<bool> prevIgnoreClassifying(mModule->mIsInsideAutoComplete, true);
|
||||
BfExprEvaluator exprEvaluator(mModule);
|
||||
auto arrowValue = exprEvaluator.PerformUnaryOperation_TryOperator(targetValue, NULL, BfUnaryOp_Arrow, BfNodeDynCast<BfTokenNode>(dotToken), BfUnaryOpFlag_None);
|
||||
if (arrowValue)
|
||||
targetValue = arrowValue;
|
||||
}
|
||||
|
||||
bool hadResults = false;
|
||||
bool doAsNamespace = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue