1
0
mirror of synced 2024-11-28 09:30:51 +01:00

pattern: Fixed continue and break statements in structs

This commit is contained in:
WerWolv 2022-01-21 19:06:19 +01:00
parent cf89cbe662
commit 355b99c68f

View File

@ -1009,6 +1009,8 @@ namespace hex::pl {
LogConsole::abortEvaluation(hex::format("array grew past set limit of {}", limit), this);
for (u64 i = 0; i < entryCount; i++) {
evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None);
auto patterns = this->m_type->createPatterns(evaluator);
if (!patterns.empty())
@ -1028,6 +1030,8 @@ namespace hex::pl {
if (entryIndex > limit)
LogConsole::abortEvaluation(hex::format("array grew past set limit of {}", limit), this);
evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None);
auto patterns = this->m_type->createPatterns(evaluator);
if (!patterns.empty())
@ -1048,6 +1052,8 @@ namespace hex::pl {
if (entryIndex > limit)
LogConsole::abortEvaluation(hex::format("array grew past set limit of {}", limit), this);
evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None);
auto patterns = this->m_type->createPatterns(evaluator);
if (!patterns.empty()) {