Parcourir la source

Set BfScopeKind_StatementTarget_Conditional in 'while'

Brian Fiete il y a 3 ans
Parent
commit
d5485d25e3
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      IDEHelper/Compiler/BfStmtEvaluator.cpp

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