Keep track of loop variables as scoped locals

This commit is contained in:
Yoshi Askharoun
2025-09-26 13:26:19 -05:00
parent 6bf7589819
commit 8e84eaafca
+2
View File
@@ -233,6 +233,8 @@ partial class Decompiler
forEachBlockInfo2.Type = IrisExpression.ToSyntax(loopVariableType, _context);
forEachBlockInfo2.Identifier = loopVariableSymbol;
scopedLocals[loopVariableSymbol] = loopVariableType;
stack.Push(IdentifierName(loopVariableSymbol));
break;