1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Set BfScopeKind_StatementTarget_Conditional in 'while'

This commit is contained in:
Brian Fiete 2022-02-16 09:01:15 -05:00
parent ae53196e74
commit d5485d25e3

View file

@ -5649,6 +5649,7 @@ void BfModule::Visit(BfWhileStatement* whileStmt)
mCurMethodState->mInHeadScope = false;
BfScopeData scopeData;
scopeData.mScopeKind = BfScopeKind_StatementTarget_Conditional;
scopeData.mIsLoop = true;
if (whileStmt->mLabelNode != NULL)
scopeData.mLabelNode = whileStmt->mLabelNode->mLabel;