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

Fixed deferred function call

This commit is contained in:
Brian Fiete 2025-03-08 11:02:07 -08:00
parent 805d312c98
commit be0733d37c
6 changed files with 81 additions and 25 deletions

View file

@ -401,6 +401,14 @@ enum BfBinOpFlags
BfBinOpFlag_DeferRight = 0x20
};
struct BfDeferCallData
{
BfAstNode* mRefNode;
BfScopeData* mScopeAlloc;
BfIRValue mFuncAlloca; // When we need to load
BfIRValue mFuncAlloca_Orig;
};
class BfExprEvaluator : public BfStructuralVisitor
{
public:
@ -422,9 +430,8 @@ public:
BfAttributeState* mPrefixedAttributeState;
BfTypedValue* mReceivingValue;
BfFunctionBindResult* mFunctionBindResult;
SizedArray<BfResolvedArg, 2> mIndexerValues;
BfAstNode* mDeferCallRef;
BfScopeData* mDeferScopeAlloc;
SizedArray<BfResolvedArg, 2> mIndexerValues;
BfDeferCallData* mDeferCallData;
bool mUsedAsStatement;
bool mPropDefBypassVirtual;
bool mExplicitCast;