2
0
Эх сурвалжийг харах

Set BfScopeKind_StatementTarget_Conditional in 'while'

Brian Fiete 3 жил өмнө
parent
commit
d5485d25e3

+ 1 - 0
IDEHelper/Compiler/BfStmtEvaluator.cpp

@@ -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;