1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Improved autocomplete with string interpolation

This commit is contained in:
Brian Fiete 2022-06-03 12:04:04 -07:00
parent e8a8985734
commit 454ed279dc
2 changed files with 64 additions and 17 deletions

View file

@ -3895,8 +3895,11 @@ void BfExprEvaluator::Visit(BfStringInterpolationExpression* stringInterpolation
BfTokenNode* newToken = NULL;
BfAllocTarget allocTarget;
ResolveAllocTarget(allocTarget, stringInterpolationExpression->mAllocNode, newToken);
CreateObject(NULL, stringInterpolationExpression->mAllocNode, stringType);
//
{
SetAndRestoreValue<BfEvalExprFlags> prevFlags(mBfEvalExprFlags, (BfEvalExprFlags)(mBfEvalExprFlags | BfEvalExprFlags_NoAutoComplete));
CreateObject(NULL, stringInterpolationExpression->mAllocNode, stringType);
}
BfTypedValue newString = mResult;
BF_ASSERT(newString);